-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
52 lines (49 loc) · 1.22 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
45
46
47
48
49
50
51
52
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = "github:numtide/nix-filter";
nix-alacarte = {
url = "github:ilkecan/nix-alacarte";
inputs = {
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
overlayln.follows = "";
};
};
crate2nix = {
url = "github:kolloch/crate2nix";
flake = false;
};
};
outputs = { self, ... }@inputs:
let
inherit (inputs.nixpkgs.lib)
composeManyExtensions
;
inherit (inputs.nix-alacarte.lib)
attrs
importDirectory
;
in
{
overlays =
let
overlays = import ./nix/overlays { inherit inputs; };
in
overlays // {
default = composeManyExtensions (attrs.values overlays);
};
} // inputs.flake-utils.lib.eachDefaultSystem (system:
let
importDirectory' = path:
importDirectory { } path { inherit inputs system; };
in
{
packages = importDirectory' ./nix/pkgs // {
default = self.packages.${system}.overlayln;
};
libs = importDirectory' ./nix/lib;
}
);
}