Skip to content

Commit

Permalink
make-tarball.nix: Strip source directory from packages.json
Browse files Browse the repository at this point in the history
NixOS/nixos-homepage#372
(cherry picked from commit 4e554ad)
  • Loading branch information
edolstra committed Mar 29, 2020
1 parent 098a018 commit 2f05909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/top-level/make-tarball.nix
Expand Up @@ -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
'';
Expand Down

0 comments on commit 2f05909

Please sign in to comment.