2022-01-08 07:33:26 +00:00
|
|
|
{
|
2022-02-20 23:18:50 +00:00
|
|
|
description = "SneedMC flake";
|
2022-01-08 18:33:50 +00:00
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
2022-01-13 13:28:45 +00:00
|
|
|
inputs.flake-compat = {
|
2022-01-09 06:08:39 +00:00
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
2022-01-08 19:15:19 +00:00
|
|
|
inputs.libnbtplusplus = {
|
|
|
|
url = "github:multimc/libnbtplusplus";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
inputs.quazip = {
|
2022-02-04 07:13:48 +00:00
|
|
|
url = "github:stachenov/quazip";
|
2022-01-08 19:15:19 +00:00
|
|
|
flake = false;
|
|
|
|
};
|
2022-01-08 07:33:26 +00:00
|
|
|
|
2022-01-13 10:57:35 +00:00
|
|
|
outputs = args@{ self, nixpkgs, flake-utils, libnbtplusplus, quazip, ... }:
|
2022-02-14 14:45:51 +00:00
|
|
|
let
|
|
|
|
systems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
# "aarch64-darwin" # qtbase is currently broken
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
|
|
|
in {
|
2022-01-13 13:28:45 +00:00
|
|
|
overlay = final: prev: {
|
2022-02-20 23:18:50 +00:00
|
|
|
inherit (self.packages.${final.system}) sneedmc;
|
2022-01-13 10:57:35 +00:00
|
|
|
};
|
2022-02-14 14:45:51 +00:00
|
|
|
} // flake-utils.lib.eachSystem systems (system:
|
2022-01-13 13:28:45 +00:00
|
|
|
let pkgs = import nixpkgs { inherit system; };
|
|
|
|
in {
|
|
|
|
packages = {
|
2022-02-20 23:18:50 +00:00
|
|
|
sneedmc = pkgs.libsForQt5.callPackage ./packages/nix/sneedmc {
|
2022-01-13 13:28:45 +00:00
|
|
|
inherit self;
|
|
|
|
submoduleQuazip = quazip;
|
|
|
|
submoduleNbt = libnbtplusplus;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
apps = {
|
2022-02-20 23:18:50 +00:00
|
|
|
sneedmc = flake-utils.lib.mkApp {
|
|
|
|
name = "sneedmc";
|
|
|
|
drv = self.packages.${system}.sneedmc;
|
2022-01-13 13:28:45 +00:00
|
|
|
};
|
|
|
|
};
|
2022-02-20 23:18:50 +00:00
|
|
|
defaultPackage = self.packages.${system}.sneedmc;
|
|
|
|
defaultApp = self.apps.${system}.sneedmc;
|
2022-01-13 13:28:45 +00:00
|
|
|
});
|
2022-01-08 15:12:44 +00:00
|
|
|
}
|