nix: init flake
This commit is contained in:
parent
1e51827ba3
commit
8d184958d8
2 changed files with 72 additions and 4 deletions
33
flake.nix
33
flake.nix
|
@ -1,7 +1,32 @@
|
|||
{
|
||||
description = "PolyMC";
|
||||
description = "PolyMC flake";
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = inputs: {
|
||||
overlay = import ./packages/nix/overlay.nix;
|
||||
};
|
||||
outputs = inputs@{ self, nixpkgs, flake-utils,... }:
|
||||
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
|
||||
packages = {
|
||||
polymc = pkgs.libsForQt5.callPackage ./package/nix {};
|
||||
};
|
||||
|
||||
apps = {
|
||||
polymc = flake-utils.lib.mkApp {
|
||||
name = "PolyMC";
|
||||
drv = packages.polymc;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit packages apps;
|
||||
|
||||
defaultPackage = packages.polymc;
|
||||
defaultApp = apps.polymc;
|
||||
overlay = import ./packages/nix/overlay.nix;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue