~kaction/config

ref: 42707d29c994c30956608b9c9f10cbaf1d00add4 config/system-v2/nix-sys/generate.do -rwxr-xr-x 377 bytes
42707d29 — Dmitry Bogatov nix-sys: generate build system inside of build system 1 year, 2 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -eu
out=$(cat conf/out)
cdb=$(cat conf/cdb)
manifest=$(cat conf/manifest)
redo-ifchange conf/out conf/cdb conf/manifest

hash=$(echo "$out" | cut -b 12-43)
exec nix-sys-generate               \
      --manifest "$manifest"        \
      --output-config config.h      \
      --output-cdb "$cdb"           \
      --staged-output-cdb index.cdb \
      --hash "$hash"