-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
36 lines (36 loc) · 926 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs";
};
purifix = {
url = "github:purifix/purifix";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
purenix.url = "github:purenix-org/purenix";
};
outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
inputs.purifix.overlay
inputs.purenix.overlay
];
};
purenix-pkgs = pkgs.purifix {
src = ./.;
backends = [ pkgs.purenix ];
withDocs = false;
copyFiles = true;
};
all-packages = pkgs.linkFarmFromDrvs "purenix-pkgs" (builtins.attrValues purenix-pkgs);
in
{
packages = purenix-pkgs // { inherit all-packages; };
checks = purenix-pkgs.prelude.package-set;
});
}