release.nix: fix packages.json.br for tarball

This commit is contained in:
Jonathan Ringer 2022-02-07 20:40:11 -08:00 committed by Jonathan Ringer
parent 3578be70f5
commit f3cb640d58

View File

@ -64,7 +64,7 @@ pkgs.releaseTools.sourceTarball {
header "generating packages.json"
mkdir -p $out/nix-support
echo -n '{"version":2,"packages":' > tmp
nix-env -f . -I nixpkgs=$src -qa --json --arg config 'import ${./packages-config.nix}' "''${opts[@]}" >> tmp
nix-env -f . -I nixpkgs=$src -qa --meta --json --arg config 'import ${./packages-config.nix}' "''${opts[@]}" >> tmp
echo -n '}' >> tmp
packages=$out/packages.json.br
< tmp sed "s|$(pwd)/||g" | jq -c | brotli -9 > $packages