3
0
Fork 0
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:
Eelco Dolstra 2020-03-29 20:00:53 +02:00
parent 56ec5a2577
commit 4e554ad1bc
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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
'';