pollymc/flake.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

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