2023-05-27 23:15:28 +05:30
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
self,
|
|
|
|
version,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
perSystem = {pkgs, ...}: {
|
|
|
|
packages = {
|
2023-06-02 16:11:18 +05:30
|
|
|
inherit (pkgs) prismlauncher-qt5-unwrapped prismlauncher-qt5 prismlauncher-unwrapped prismlauncher;
|
2023-05-27 23:15:28 +05:30
|
|
|
default = pkgs.prismlauncher;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
flake = {
|
2023-06-02 16:11:18 +05:30
|
|
|
overlays.default = final: prev: let
|
2023-05-27 23:15:28 +05:30
|
|
|
# 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 16:11:18 +05:30
|
|
|
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 23:15:28 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|