feat(nix): flake-utils -> flake-parts

Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
seth
2023-05-27 13:45:28 -04:00
parent f24211e8b5
commit d582bf7f1f
8 changed files with 264 additions and 197 deletions

27
nix/distribution.nix Normal file
View 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;
};
};
}