git.iko.soy/typeable/nixpkgs
on master help sign in
cargo: install man pages

I thought about doing a seperate output for these, but they're tiny compared to the size of the binary, so there's no point. (cherry picked from commit 0489c1b4b20d13fa04e6460ead73893889ff2529)

commite1ed62abc2b5f628a3e1184a757d0be4f0d1228e authorAlyssa Ross <hi@alyssa.is> dateTue 11 Feb 2020, 17:52 (7 years ago) parent5c8612d
1 file changed+4−2
pkgs/development/compilers/rust/cargo.nix+4−2
pkgs/development/compilers/rust/cargo.nix+4−2
@@ -1,5 +1,5 @@
11{ stdenv, file, curl, pkgconfig, python3, openssl, cmake, zlib
2−, makeWrapper, libiconv, cacert, rustPlatform, rustc
2+, installShellFiles, makeWrapper, libiconv, cacert, rustPlatform, rustc
33, CoreFoundation, Security
44}:
55
@@ -17,7 +17,7 @@ rustPlatform.buildRustPackage {
1717 # changes hash of vendor directory otherwise
1818 dontUpdateAutotoolsGnuConfigScripts = true;
1919
20− nativeBuildInputs = [ pkgconfig cmake makeWrapper ];
20+ nativeBuildInputs = [ pkgconfig cmake installShellFiles makeWrapper ];
2121 buildInputs = [ cacert file curl python3 openssl zlib ]
2222 ++ stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation Security libiconv ];
2323
@@ -37,6 +37,8 @@ rustPlatform.buildRustPackage {
3737 --suffix PATH : "${rustc}/bin" \
3838 --set CARGO_HTTP_CAINFO "${cacert}/etc/ssl/certs/ca-bundle.crt" \
3939 --set SSL_CERT_FILE "${cacert}/etc/ssl/certs/ca-bundle.crt"
40+
41+ installManPage src/tools/cargo/src/etc/man/*
4042 '';
4143
4244 checkPhase = ''