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-09 19:32:50 +01:00
|
|
|
ourPackages = lib.fix (final: self.overlays.default 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
|
|
|
|
2023-09-09 20:10:15 +01:00
|
|
|
filteredSelf = inputs.nix-filter.lib.filter {
|
|
|
|
root = ../.;
|
|
|
|
include = [
|
|
|
|
"buildconfig"
|
|
|
|
"cmake"
|
|
|
|
"launcher"
|
|
|
|
"libraries"
|
|
|
|
"program_info"
|
|
|
|
"tests"
|
|
|
|
../COPYING.md
|
|
|
|
../CMakeLists.txt
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-08-28 09:26:03 +01:00
|
|
|
# common args for prismlauncher evaluations
|
|
|
|
unwrappedArgs = {
|
2023-09-09 20:10:15 +01:00
|
|
|
self = filteredSelf;
|
|
|
|
|
2023-08-28 09:26:03 +01:00
|
|
|
inherit (inputs) libnbtplusplus;
|
2023-09-09 19:32:50 +01:00
|
|
|
inherit ((final.darwin or prev.darwin).apple_sdk.frameworks) Cocoa;
|
2023-09-09 20:10:15 +01:00
|
|
|
inherit version;
|
2023-08-28 09:26:03 +01:00
|
|
|
};
|
2023-09-03 23:11:23 +01:00
|
|
|
in {
|
|
|
|
prismlauncher-qt5-unwrapped = prev.libsForQt5.callPackage ./pkg unwrappedArgs;
|
2023-09-09 19:32:50 +01:00
|
|
|
|
2023-09-03 23:11:23 +01:00
|
|
|
prismlauncher-qt5 = prev.libsForQt5.callPackage ./pkg/wrapper.nix {
|
|
|
|
prismlauncher-unwrapped = final.prismlauncher-qt5-unwrapped;
|
|
|
|
};
|
2023-09-09 19:32:50 +01:00
|
|
|
|
2023-09-03 23:11:23 +01:00
|
|
|
prismlauncher-unwrapped = prev.qt6Packages.callPackage ./pkg unwrappedArgs;
|
2023-09-09 19:32:50 +01:00
|
|
|
|
|
|
|
prismlauncher = prev.qt6Packages.callPackage ./pkg/wrapper.nix {
|
|
|
|
inherit (final) prismlauncher-unwrapped;
|
|
|
|
};
|
2023-05-27 18:45:28 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|