···
auditable ? !cargo-auditable.meta.broken,
rustPlatform.buildRustPackage.override
cargo-auditable = cargo-auditable.bootstrap;
28
-
inherit (rustc.unwrapped) version src;
26
+
inherit (rustc.unwrapped) version src;
30
-
# the rust source tarball already has all the dependencies vendored, no need to fetch them again
31
-
cargoVendorDir = "vendor";
32
-
buildAndTestSubdir = "src/tools/cargo";
28
+
# the rust source tarball already has all the dependencies vendored, no need to fetch them again
29
+
cargoVendorDir = "vendor";
30
+
buildAndTestSubdir = "src/tools/cargo";
38
-
inherit (rustc.unwrapped) tests;
36
+
inherit (rustc.unwrapped) tests;
41
-
# changes hash of vendor directory otherwise
42
-
dontUpdateAutotoolsGnuConfigScripts = true;
39
+
# changes hash of vendor directory otherwise
40
+
dontUpdateAutotoolsGnuConfigScripts = true;
44
-
nativeBuildInputs = [
49
-
(lib.getDev pkgsHostHost.curl)
42
+
nativeBuildInputs = [
47
+
(lib.getDev pkgsHostHost.curl)
60
-
# cargo uses git-rs which is made for a version of libgit2 from recent master that
61
-
# is not compatible with the current version in nixpkgs.
62
-
#LIBGIT2_SYS_USE_PKG_CONFIG = 1;
58
+
# cargo uses git-rs which is made for a version of libgit2 from recent master that
59
+
# is not compatible with the current version in nixpkgs.
60
+
#LIBGIT2_SYS_USE_PKG_CONFIG = 1;
64
-
# fixes: the cargo feature `edition` requires a nightly version of Cargo, but this is the `stable` channel
65
-
RUSTC_BOOTSTRAP = 1;
62
+
# fixes: the cargo feature `edition` requires a nightly version of Cargo, but this is the `stable` channel
63
+
RUSTC_BOOTSTRAP = 1;
68
-
wrapProgram "$out/bin/cargo" --suffix PATH : "${rustc}/bin"
66
+
wrapProgram "$out/bin/cargo" --suffix PATH : "${rustc}/bin"
70
-
installManPage src/tools/cargo/src/etc/man/*
68
+
installManPage src/tools/cargo/src/etc/man/*
72
-
installShellCompletion --bash --name cargo \
73
-
src/tools/cargo/src/etc/cargo.bashcomp.sh
70
+
installShellCompletion --bash --name cargo \
71
+
src/tools/cargo/src/etc/cargo.bashcomp.sh
75
-
installShellCompletion --zsh src/tools/cargo/src/etc/_cargo
73
+
installShellCompletion --zsh src/tools/cargo/src/etc/_cargo
79
-
# Disable cross compilation tests
80
-
export CFG_DISABLE_CROSS_TESTS=1
77
+
# Disable cross compilation tests
78
+
export CFG_DISABLE_CROSS_TESTS=1
84
-
# Disable check phase as there are failures (4 tests fail)
82
+
# Disable check phase as there are failures (4 tests fail)
87
-
doInstallCheck = !stdenv.hostPlatform.isStatic && stdenv.hostPlatform.isElf;
88
-
installCheckPhase = ''
89
-
runHook preInstallCheck
90
-
${stdenv.cc.targetPrefix}readelf -a $out/bin/.cargo-wrapped | grep -F 'Shared library: [libcurl.so'
91
-
runHook postInstallCheck
85
+
doInstallCheck = !stdenv.hostPlatform.isStatic && stdenv.hostPlatform.isElf;
86
+
installCheckPhase = ''
87
+
runHook preInstallCheck
88
+
${stdenv.cc.targetPrefix}readelf -a $out/bin/.cargo-wrapped | grep -F 'Shared library: [libcurl.so'
89
+
runHook postInstallCheck
95
-
homepage = "https://crates.io";
96
-
description = "Downloads your Rust project's dependencies and builds your project";
97
-
mainProgram = "cargo";
98
-
teams = [ teams.rust ];
103
-
platforms = platforms.unix;
104
-
# https://github.com/alexcrichton/nghttp2-rs/issues/2
105
-
broken = stdenv.hostPlatform.isx86 && stdenv.buildPlatform != stdenv.hostPlatform;
109
-
lib.optionalAttrs (stdenv.buildPlatform.rust.rustcTarget != stdenv.hostPlatform.rust.rustcTarget)
111
-
HOST_PKG_CONFIG_PATH = "${pkgsBuildBuild.pkg-config}/bin/pkg-config";
93
+
homepage = "https://crates.io";
94
+
description = "Downloads your Rust project's dependencies and builds your project";
95
+
mainProgram = "cargo";
96
+
teams = [ teams.rust ];
101
+
platforms = platforms.unix;
102
+
# https://github.com/alexcrichton/nghttp2-rs/issues/2
103
+
broken = stdenv.hostPlatform.isx86 && stdenv.buildPlatform != stdenv.hostPlatform;