pollymc/flake.nix
meguminloli 60e9d2754a changed flake.nix
removed result
2022-01-13 13:14:50 +02:00

45 lines
1.1 KiB
Nix

{
description = "PolyMC flake";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
inputs.libnbtplusplus = {
url = "github:multimc/libnbtplusplus";
flake = false;
};
inputs.quazip = {
url = "github:multimc/quazip";
flake = false;
};
outputs = args@{ self, nixpkgs, flake-utils, libnbtplusplus, quazip, ... }:
{
overlay = final: prev: {
inherit (self.packages.${final.system})
polymc;
};
} // flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux"] (system:
let pkgs = import nixpkgs {
inherit system;
};
in {
defaultPackage = self.packages.${system}.polymc;
packages = rec {
polymc = pkgs.libsForQt5.callPackage ./packages/nix/polymc {
inherit self;
submoduleQuazip = quazip;
submoduleNbt = libnbtplusplus;
};
};
apps = rec {
polymc = flake-utils.lib.mkApp {
name = "polymc";
drv = self.packages.${system}.polymc;
};
};
});
}