2023-05-27 18:45:28 +01:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: {
|
2023-09-03 23:11:23 +01:00
|
|
|
perSystem = {
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-08-28 09:26:03 +01:00
|
|
|
packages = let
|
2023-09-03 23:11:23 +01:00
|
|
|
ourPackages = lib.fix (final: self.overlays.default ({inherit (pkgs) darwin;} // final) pkgs);
|
2023-08-28 09:26:03 +01:00
|
|
|
in {
|
2023-09-03 23:11:23 +01:00
|
|
|
inherit
|
|
|
|
(ourPackages)
|
|
|
|
prismlauncher-qt5-unwrapped
|
|
|
|
prismlauncher-qt5
|
|
|
|
prismlauncher-unwrapped
|
|
|
|
prismlauncher
|
|
|
|
;
|
2023-08-28 09:26:03 +01:00
|
|
|
default = ourPackages.prismlauncher;
|
2023-05-27 18:45:28 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
flake = {
|
2023-09-03 23:11:23 +01:00
|
|
|
overlays.default = final: prev: let
|
|
|
|
version = builtins.substring 0 8 self.lastModifiedDate or "dirty";
|
2023-08-28 09:26:03 +01:00
|
|
|
|
|
|
|
# common args for prismlauncher evaluations
|
|
|
|
unwrappedArgs = {
|
|
|
|
inherit (inputs) libnbtplusplus;
|
|
|
|
inherit (final.darwin.apple_sdk.frameworks) Cocoa;
|
|
|
|
inherit self version;
|
|
|
|
};
|
2023-09-03 23:11:23 +01:00
|
|
|
in {
|
|
|
|
prismlauncher-qt5-unwrapped = prev.libsForQt5.callPackage ./pkg unwrappedArgs;
|
|
|
|
prismlauncher-qt5 = prev.libsForQt5.callPackage ./pkg/wrapper.nix {
|
|
|
|
prismlauncher-unwrapped = final.prismlauncher-qt5-unwrapped;
|
|
|
|
};
|
|
|
|
prismlauncher-unwrapped = prev.qt6Packages.callPackage ./pkg unwrappedArgs;
|
|
|
|
prismlauncher = prev.qt6Packages.callPackage ./pkg/wrapper.nix {inherit (final) prismlauncher-unwrapped;};
|
2023-05-27 18:45:28 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|