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-02-14 20:15:51 +05:30
|
|
|
let
|
|
|
|
systems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
# "aarch64-darwin" # qtbase is currently broken
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
|
|
|
in {
|
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-02-14 20:15:51 +05:30
|
|
|
} // flake-utils.lib.eachSystem systems (system:
|
2022-01-13 18:58:45 +05:30
|
|
|
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
|
|
|
}
|