nix/fetchcargo: fix touch

This commit is contained in:
Astro 2019-05-09 23:18:00 +02:00
parent 8ab5a8dafc
commit 05f85dba77
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
{ stdenv, rustPlatform, cacert, git, cargo-vendor }: { stdenv, rustPlatform, cacert, git, cargo-vendor, coreutils }:
with rustPlatform; with rustPlatform;
let let
sha256 = "19cdc0lkm9247n6kf23ki66gysz530j1x2lfnzq7n0cpcs53q3h3"; sha256 = "19cdc0lkm9247n6kf23ki66gysz530j1x2lfnzq7n0cpcs53q3h3";
fetchcargo = import ./fetchcargo.nix { fetchcargo = import ./fetchcargo.nix {
inherit stdenv cacert git cargo-vendor; inherit stdenv cacert git cargo-vendor coreutils;
inherit (rust) cargo; inherit (rust) cargo;
}; };
adc2tcpDeps = fetchcargo { adc2tcpDeps = fetchcargo {

View File

@ -1,4 +1,4 @@
{ stdenv, cacert, git, cargo, cargo-vendor }: { stdenv, cacert, git, cargo, cargo-vendor, coreutils }:
{ name, src, sha256 }: { name, src, sha256 }:
let let
# `src` restricted to the two files that define dependencies # `src` restricted to the two files that define dependencies
@ -10,7 +10,7 @@ let
mkdir $out mkdir $out
cp ${src}/Cargo.{toml,lock} $out/ cp ${src}/Cargo.{toml,lock} $out/
mkdir $out/src mkdir $out/src
touch src/main.rs ${coreutils}/bin/touch src/main.rs
''; '';
}; };
in in