Unverified Commit 214cf0b9 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

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".
parent 11376df6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"
    '';