nixos/rust-motd: .attrs.json -> "$NIX_ATTRS_JSON_FILE"
That way the derivation can also be built in a `nix-shell` where `.attrs.json` isn't under "$NIX_BUILD_TOP".
This commit is contained in:
parent
11376df6d4
commit
214cf0b934
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ let
|
|||
nativeBuildInputs = [ pkgs.remarshal pkgs.jq ];
|
||||
})
|
||||
''
|
||||
cat "$NIX_BUILD_TOP"/.attrs.json \
|
||||
cat "$NIX_ATTRS_JSON_FILE" \
|
||||
| jq '${concatMapStringsSep " + " (key: ''."${key}"'') (attrNames orderedSections)}' \
|
||||
| json2toml /dev/stdin "$out"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue