From 05f85dba770bad097539eec6845b4a19277b110b Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 9 May 2019 23:18:00 +0200 Subject: [PATCH] nix/fetchcargo: fix touch --- nix/adc2tcp.nix | 4 ++-- nix/fetchcargo.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nix/adc2tcp.nix b/nix/adc2tcp.nix index 2544016..a98c981 100644 --- a/nix/adc2tcp.nix +++ b/nix/adc2tcp.nix @@ -1,10 +1,10 @@ -{ stdenv, rustPlatform, cacert, git, cargo-vendor }: +{ stdenv, rustPlatform, cacert, git, cargo-vendor, coreutils }: with rustPlatform; let sha256 = "19cdc0lkm9247n6kf23ki66gysz530j1x2lfnzq7n0cpcs53q3h3"; fetchcargo = import ./fetchcargo.nix { - inherit stdenv cacert git cargo-vendor; + inherit stdenv cacert git cargo-vendor coreutils; inherit (rust) cargo; }; adc2tcpDeps = fetchcargo { diff --git a/nix/fetchcargo.nix b/nix/fetchcargo.nix index b55339a..0f5d722 100644 --- a/nix/fetchcargo.nix +++ b/nix/fetchcargo.nix @@ -1,4 +1,4 @@ -{ stdenv, cacert, git, cargo, cargo-vendor }: +{ stdenv, cacert, git, cargo, cargo-vendor, coreutils }: { name, src, sha256 }: let # `src` restricted to the two files that define dependencies @@ -10,7 +10,7 @@ let mkdir $out cp ${src}/Cargo.{toml,lock} $out/ mkdir $out/src - touch src/main.rs + ${coreutils}/bin/touch src/main.rs ''; }; in