pollymc/nix/distribution.nix
seth d582bf7f1f
feat(nix): flake-utils -> flake-parts
Signed-off-by: seth <getchoo@tuta.io>
2023-05-27 19:14:50 -04:00

28 lines
579 B
Nix

{
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;
};
};
}