2023-05-27 18:45:28 +01:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
self,
|
|
|
|
version,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
perSystem = {pkgs, ...}: {
|
|
|
|
packages = {
|
2023-06-02 11:41:18 +01:00
|
|
|
inherit (pkgs) prismlauncher-qt5-unwrapped prismlauncher-qt5 prismlauncher-unwrapped prismlauncher;
|
2023-05-27 18:45:28 +01:00
|
|
|
default = pkgs.prismlauncher;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
flake = {
|
2023-06-02 11:41:18 +01:00
|
|
|
overlays.default = final: prev: let
|
2023-05-27 18:45:28 +01:00
|
|
|
# Helper function to build prism against different versions of Qt.
|
|
|
|
mkPrism = qt:
|
|
|
|
qt.callPackage ./package.nix {
|
|
|
|
inherit (inputs) libnbtplusplus;
|
|
|
|
inherit self version;
|
|
|
|
};
|
|
|
|
in {
|
2023-06-02 11:41:18 +01:00
|
|
|
prismlauncher-qt5-unwrapped = mkPrism final.libsForQt5;
|
|
|
|
prismlauncher-qt5 = prev.prismlauncher-qt5.override {inherit (final) prismlauncher-unwrapped;};
|
|
|
|
prismlauncher-unwrapped = mkPrism final.qt6Packages;
|
|
|
|
prismlauncher = prev.prismlauncher.override {inherit (final) prismlauncher-unwrapped;};
|
2023-05-27 18:45:28 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|