From a3bc43ce06d132453f1f3de3e395b8cda19a3fc9 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 23 Apr 2021 17:51:12 +0200 Subject: pkgs/profpatsch/write-rust: alwyas run tests by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit testRustSimple wouldn’t work with all the rust functions, so let’s just use it internally and expose the tests via the conventional `doCheck` attribute instead. --- pkgs/sternenseemann/rust/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pkgs/sternenseemann/rust/default.nix') diff --git a/pkgs/sternenseemann/rust/default.nix b/pkgs/sternenseemann/rust/default.nix index bc4e785b..b04c270e 100644 --- a/pkgs/sternenseemann/rust/default.nix +++ b/pkgs/sternenseemann/rust/default.nix @@ -1,18 +1,16 @@ { writeRustSimpleLib , writeRustSimpleBin -, testRustSimple }: let - temp = testRustSimple - (writeRustSimpleLib "temp" { + temp = writeRustSimpleLib "temp" { release = false; verbose = true; meta = { description = "Tiny temp dir/file crate for rust"; }; - } ./temp.rs); + } ./temp.rs; nix-env-diff = writeRustSimpleBin "nix-env-diff" { meta = { -- cgit 1.4.1