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;
|
2023-08-04 16:55:31 +01:00
|
|
|
inherit (prev.darwin.apple_sdk.frameworks) Cocoa;
|
2023-05-27 18:45:28 +01:00
|
|
|
inherit self version;
|
|
|
|
};
|
|
|
|
in {
|
2023-06-02 11:41:18 +01:00
|
|
|
prismlauncher-qt5-unwrapped = mkPrism final.libsForQt5;
|
2023-06-02 16:53:09 +01:00
|
|
|
prismlauncher-qt5 = prev.prismlauncher-qt5.override {prismlauncher-unwrapped = final.prismlauncher-qt5-unwrapped;};
|
2023-06-02 11:41:18 +01:00
|
|
|
prismlauncher-unwrapped = mkPrism final.qt6Packages;
|
|
|
|
prismlauncher = prev.prismlauncher.override {inherit (final) prismlauncher-unwrapped;};
|
2023-05-27 18:45:28 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|