electrs: fix conditional cargoSha256
This commit is contained in:
parent
f5dbac318d
commit
2d3a1e839e
@ -13,8 +13,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
nativeBuildInputs = [ llvmPackages.clang ];
|
nativeBuildInputs = [ llvmPackages.clang ];
|
||||||
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
||||||
|
|
||||||
cargoSha256 = if pkgs ? cargo-vendor then
|
cargoSha256 = if builtins.pathExists "${pkgs.path}/pkgs/build-support/rust/fetchcargo.nix" then
|
||||||
# nixpkgs ≤ 19.09
|
# nixpkgs ≤ 20.03
|
||||||
"19qs8if8fmygv6j74s6iwzm534fybwasjvmzdqcl996xhg75w6gi"
|
"19qs8if8fmygv6j74s6iwzm534fybwasjvmzdqcl996xhg75w6gi"
|
||||||
else
|
else
|
||||||
# for recent nixpkgs with cargo-native vendoring (introduced in nixpkgs PR #69274)
|
# for recent nixpkgs with cargo-native vendoring (introduced in nixpkgs PR #69274)
|
||||||
|
Loading…
Reference in New Issue
Block a user