Publish a tarball containing the crates we depend on

This is needed since we no longer produce a source tarball.
This commit is contained in:
Eelco Dolstra 2020-04-03 20:06:26 +02:00
parent 6e7f252ea6
commit bf70a047a0

View file

@ -239,6 +239,20 @@
hydraJobs = { hydraJobs = {
nixVendoredCrates =
with nixpkgsFor.x86_64-linux;
runCommand "vendored-crates" {}
''
mkdir -p $out/nix-support
name=nix-vendored-crates-${version}
fn=$out/$name.tar.xz
tar cvfJ $fn -C ${nixVendoredCrates} vendor \
--owner=0 --group=0 --mode=u+rw,uga+r \
--transform "s,vendor,$name,"
echo "file crates-tarball $fn" >> $out/nix-support/hydra-build-products
'';
# Binary package for various platforms. # Binary package for various platforms.
build = nixpkgs.lib.genAttrs systems (system: nixpkgsFor.${system}.nix); build = nixpkgs.lib.genAttrs systems (system: nixpkgsFor.${system}.nix);