nix/adc2tcp: move duplicate sha256 into one variable

master
Astro 2019-03-25 01:33:45 +01:00
parent db9b50f9c6
commit 5abcfae432
1 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
with rustPlatform;
let
sha256 = "0071fn2gj976s20nv6wfjyi0ddcsq17sbpdxkfl0r5hwia5gixph";
fetchcargo = import ./fetchcargo.nix {
inherit stdenv cacert git cargo-vendor;
inherit (rust) cargo;
@ -9,7 +10,7 @@ let
adc2tcpDeps = fetchcargo {
name = "adc2tcp-deps";
src = ../.;
sha256 = "0071fn2gj976s20nv6wfjyi0ddcsq17sbpdxkfl0r5hwia5gixph";
inherit sha256;
};
in
@ -18,7 +19,7 @@ buildRustPackage rec {
version = "0.0.0";
src = ../.;
cargoSha256 = "0071fn2gj976s20nv6wfjyi0ddcsq17sbpdxkfl0r5hwia5gixph";
cargoSha256 = sha256;
buildInputs = [ adc2tcpDeps ];
patchPhase = ''