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/nman/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pkgs/profpatsch/nman') diff --git a/pkgs/profpatsch/nman/default.nix b/pkgs/profpatsch/nman/default.nix index f03c4502..31461999 100644 --- a/pkgs/profpatsch/nman/default.nix +++ b/pkgs/profpatsch/nman/default.nix @@ -1,10 +1,9 @@ { lib , writeRustSimpleBin -, testRustSimple , temp }: -testRustSimple (writeRustSimpleBin "nman" { +writeRustSimpleBin "nman" { meta = { license = lib.licenses.gpl3Only; description = "Open man page in a temporary nix-shell"; @@ -15,4 +14,4 @@ testRustSimple (writeRustSimpleBin "nman" { postInstall = '' install -Dm644 ${./nman.1} "$out/share/man/man1/nman.1" ''; -} ./nman.rs) +} ./nman.rs -- cgit 1.4.1