Fix rust-docs for 1.53.0

wip/nixpkgs-raku
oxalica 3 years ago
parent df5d330f34
commit e02596cdb9
No known key found for this signature in database
GPG Key ID: CED392DE0C483D00
  1. 10
      rust-overlay.nix

@ -183,7 +183,7 @@ let
# entire unpacked contents after just a little twiddling.
preferLocalBuild = true;
nativeBuildInputs = [ self.cpio ];
nativeBuildInputs = [ self.gnutar ];
installPhase = ''
runHook preInstall
@ -191,10 +191,11 @@ let
if [[ "$installerVersion" != 3 ]]; then
echo "Unknown installer version: $installerVersion"
fi
mkdir -p "$out"
while read -r comp; do
echo "Installing component $comp"
# Use cpio with file list instead of forking tons of cp.
cut -d: -f2 <"$comp/manifest.in" | cpio --quiet -pdD "$comp" "$out"
# We don't want to parse the file and invoking cp in bash due to slow forking.
cut -d: -f2 <"$comp/manifest.in" | tar -cf - -C "$comp" --files-from - | tar -xC "$out"
done <./components
runHook postInstall
'';
@ -251,6 +252,9 @@ let
done
'';
# rust-docs only contains tons of html files.
dontFixup = pname == "rust-docs";
postFixup = ''
# Function moves well-known files from etc/
handleEtc() {

Loading…
Cancel
Save