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/profpatsch/execline/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'pkgs/profpatsch/execline') diff --git a/pkgs/profpatsch/execline/default.nix b/pkgs/profpatsch/execline/default.nix index 0f0807b5..45d616e2 100644 --- a/pkgs/profpatsch/execline/default.nix +++ b/pkgs/profpatsch/execline/default.nix @@ -1,11 +1,10 @@ -{ pkgs, writeRustSimpleLib, testRustSimple, rust-deps }: +{ pkgs, writeRustSimpleLib, rust-deps }: let - el-semicolon = testRustSimple - (writeRustSimpleLib "el_semicolon" { - release = false; - verbose = true; - } ./el_semicolon.rs); + el-semicolon = writeRustSimpleLib "el_semicolon" { + release = false; + verbose = true; + } ./el_semicolon.rs; el-exec = writeRustSimpleLib "el_exec" { dependencies = [ rust-deps.libc ]; -- cgit 1.4.1