-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdefault.nix
More file actions
33 lines (33 loc) · 829 Bytes
/
default.nix
File metadata and controls
33 lines (33 loc) · 829 Bytes
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
{
pkgs ? null,
nixpkgs ? <nixpkgs>,
# NOTE: if a flake input is added, add it here too.
# <NAME> ? import (builtins.fetchGit (let
# lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.<NAME>.locked;
# in {
# url = "https://github.com/${lock.owner}/${lock.repo}.git";
# rev = lock.rev;
# })),
...
}@args:
let
callFlake-less =
path: inputs:
let
bareflake = import "${path}/flake.nix";
res = bareflake.outputs (
inputs
// rec {
self = res // {
outputs = res;
outPath = path;
inputs = builtins.mapAttrs (
n: _: (inputs // { inherit self; }).${n} or (throw "Missing input ${n}")
) bareflake.inputs;
};
}
);
in
res;
in
callFlake-less ./. args