PrismLauncher/flake.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2022-01-08 07:33:26 +00:00
{
2022-01-08 18:33:50 +00:00
description = "PolyMC flake";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
2022-01-08 19:15:19 +00:00
inputs.libnbtplusplus = {
url = "github:multimc/libnbtplusplus";
flake = false;
};
inputs.quazip = {
url = "github:multimc/quazip";
flake = false;
};
2022-01-08 07:33:26 +00:00
2022-01-08 19:15:19 +00:00
outputs = inputs@{ self, nixpkgs, flake-utils, libnbtplusplus, quazip, ... }:
2022-01-08 18:33:50 +00:00
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
let
pkgs = import nixpkgs {
inherit system;
};
packages = {
2022-01-08 19:15:19 +00:00
polymc = pkgs.libsForQt5.callPackage ./packages/nix/polymc {
inherit self;
submoduleQuazip = quazip;
submoduleNbt = libnbtplusplus;
};
};
2022-01-08 20:23:55 +00:00
overlay = (final: prev: rec {
polymc = prev.libsForQt5.callPackage ./packages/nix/polymc {
inherit self;
submoduleQuazip = quazip;
submoduleNbt = libnbtplusplus;
};
2022-01-08 20:23:55 +00:00
});
2022-01-08 19:15:19 +00:00
2022-01-08 18:33:50 +00:00
apps = {
polymc = flake-utils.lib.mkApp {
2022-01-08 23:40:13 +00:00
name = "polymc";
2022-01-08 18:33:50 +00:00
drv = packages.polymc;
};
};
in
{
2022-01-08 19:15:19 +00:00
inherit packages overlay apps;
2022-01-08 18:33:50 +00:00
defaultPackage = packages.polymc;
defaultApp = apps.polymc;
}
);
}