feat(nix): flake-utils -> flake-parts
Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
27
nix/distribution.nix
Normal file
27
nix/distribution.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
inputs,
|
||||
self,
|
||||
version,
|
||||
...
|
||||
}: {
|
||||
perSystem = {pkgs, ...}: {
|
||||
packages = {
|
||||
inherit (pkgs) prismlauncher prismlauncher-qt5;
|
||||
default = pkgs.prismlauncher;
|
||||
};
|
||||
};
|
||||
|
||||
flake = {
|
||||
overlays.default = _: prev: let
|
||||
# Helper function to build prism against different versions of Qt.
|
||||
mkPrism = qt:
|
||||
qt.callPackage ./package.nix {
|
||||
inherit (inputs) libnbtplusplus;
|
||||
inherit self version;
|
||||
};
|
||||
in {
|
||||
prismlauncher = mkPrism prev.qt6Packages;
|
||||
prismlauncher-qt5 = mkPrism prev.libsForQt5;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user