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-13 18:58:45 +05:30
|
|
|
inputs.flake-compat = {
|
2022-01-09 11:38:39 +05:30
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
2022-01-09 00:45:19 +05:30
|
|
|
inputs.libnbtplusplus = {
|
|
|
|
url = "github:multimc/libnbtplusplus";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
inputs.quazip = {
|
2022-02-04 12:43:48 +05:30
|
|
|
url = "github:stachenov/quazip";
|
2022-01-09 00:45:19 +05:30
|
|
|
flake = false;
|
|
|
|
};
|
2022-01-08 13:03:26 +05:30
|
|
|
|
2022-01-13 16:27:35 +05:30
|
|
|
outputs = args@{ self, nixpkgs, flake-utils, libnbtplusplus, quazip, ... }:
|
2022-01-13 18:58:45 +05:30
|
|
|
{
|
|
|
|
overlay = final: prev: {
|
|
|
|
inherit (self.packages.${final.system}) polymc;
|
2022-01-13 16:27:35 +05:30
|
|
|
};
|
2022-01-13 18:58:45 +05:30
|
|
|
} // flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let pkgs = import nixpkgs { inherit system; };
|
|
|
|
in {
|
|
|
|
packages = {
|
|
|
|
polymc = pkgs.libsForQt5.callPackage ./packages/nix/polymc {
|
|
|
|
inherit self;
|
|
|
|
submoduleQuazip = quazip;
|
|
|
|
submoduleNbt = libnbtplusplus;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
apps = {
|
|
|
|
polymc = flake-utils.lib.mkApp {
|
|
|
|
name = "polymc";
|
|
|
|
drv = self.packages.${system}.polymc;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
defaultPackage = self.packages.${system}.polymc;
|
|
|
|
defaultApp = self.apps.${system}.polymc;
|
|
|
|
});
|
2022-01-08 20:42:44 +05:30
|
|
|
}
|