nix/adc2tcp: move duplicate sha256 into one variable
This commit is contained in:
parent
db9b50f9c6
commit
5abcfae432
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
with rustPlatform;
|
with rustPlatform;
|
||||||
let
|
let
|
||||||
|
sha256 = "0071fn2gj976s20nv6wfjyi0ddcsq17sbpdxkfl0r5hwia5gixph";
|
||||||
fetchcargo = import ./fetchcargo.nix {
|
fetchcargo = import ./fetchcargo.nix {
|
||||||
inherit stdenv cacert git cargo-vendor;
|
inherit stdenv cacert git cargo-vendor;
|
||||||
inherit (rust) cargo;
|
inherit (rust) cargo;
|
||||||
@ -9,7 +10,7 @@ let
|
|||||||
adc2tcpDeps = fetchcargo {
|
adc2tcpDeps = fetchcargo {
|
||||||
name = "adc2tcp-deps";
|
name = "adc2tcp-deps";
|
||||||
src = ../.;
|
src = ../.;
|
||||||
sha256 = "0071fn2gj976s20nv6wfjyi0ddcsq17sbpdxkfl0r5hwia5gixph";
|
inherit sha256;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -18,7 +19,7 @@ buildRustPackage rec {
|
|||||||
version = "0.0.0";
|
version = "0.0.0";
|
||||||
|
|
||||||
src = ../.;
|
src = ../.;
|
||||||
cargoSha256 = "0071fn2gj976s20nv6wfjyi0ddcsq17sbpdxkfl0r5hwia5gixph";
|
cargoSha256 = sha256;
|
||||||
|
|
||||||
buildInputs = [ adc2tcpDeps ];
|
buildInputs = [ adc2tcpDeps ];
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user