forked from mirrors/nixpkgs
make-tarball.nix: Strip source directory from packages.json
https://github.com/NixOS/nixos-homepage/issues/372
This commit is contained in:
parent
56ec5a2577
commit
4e554ad1bc
|
@ -107,7 +107,7 @@ releaseTools.sourceTarball {
|
|||
nix-env -f . -I nixpkgs=${src} -qa --json --arg config 'import ${./packages-config.nix}' "''${opts[@]}" >> tmp
|
||||
echo -n '}' >> tmp
|
||||
packages=$out/packages.json.br
|
||||
jq -c < tmp | brotli -9 > $packages
|
||||
< tmp sed "s|$(pwd)/||g" | jq -c | brotli -9 > $packages
|
||||
|
||||
echo "file json-br $packages" >> $out/nix-support/hydra-build-products
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue