-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
44 lines (38 loc) · 1.46 KB
/
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
37
38
39
40
41
42
43
44
{ description = "Put Nix in everything!";
inputs.nixpkgs.url = github:nixos/nixpkgs;
inputs.nix.url = github:nixos/nix/2.17.1;
inputs.fakedir =
{ url = github:nixie-dev/fakedir;
inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "flake-utils";
};
nixConfig.extra-substituters = "https://nix-wrap.cachix.org";
nixConfig.extra-trusted-public-keys = "nix-wrap.cachix.org-1:FcfSb7e+LmXBZE/MdaFWcs4bW2OQQeBnB/kgWlkZmYI=";
outputs = { self, nix, nixpkgs, flake-utils, fakedir, ... }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = import nixpkgs { inherit system; };
in
{ packages = rec
{ default = nixie;
nixie = pkgs.callPackage ./builder {};
sources = pkgs.callPackage ./sources {};
static-bins = import ./static-bins
{ inherit nixpkgs fakedir pkgs;
libfakedir = fakedir.packages.aarch64-darwin.fakedir-universal;
nixStatics.aarch64-linux = nix.packages.aarch64-linux.nix-static;
};
} // (if system == "x86_64-darwin" || system == "aarch64-darwin"
then {
libfakedir = fakedir.packages.${system}.fakedir;
} else {});
devShells = {
default = pkgs.mkShell {
# These dependencies aren't involved in the build process, but are
# nice-to-haves in the dev environment
packages = with pkgs; [ bumpver ];
inputsFrom = [ self.packages."${system}".nixie ];
};
};
});
}