diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-02-20 18:41:33 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2021-02-25 19:52:33 +0100 |
commit | 6bb8608948484f37b6f963219d0e8371c506e01d (patch) | |
tree | dcae80070cc36669f80d40297a1b737ad6df7037 /pkgs/profpatsch/nman/default.nix | |
parent | fff161ae7928f73fdd65dafe40e6dc7553e61e65 (diff) |
pkgs/profpatsch/nman: unit test testable stuff
This is parsing and rendering of stuff currently mostly, since our main logic is relatively interwoven with IO stuff (to avoid copying stuff a lot). This is fine however as the application logic is tested using the nixos vm test we also have!
Diffstat (limited to 'pkgs/profpatsch/nman/default.nix')
-rw-r--r-- | pkgs/profpatsch/nman/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/profpatsch/nman/default.nix b/pkgs/profpatsch/nman/default.nix index 31461999..f03c4502 100644 --- a/pkgs/profpatsch/nman/default.nix +++ b/pkgs/profpatsch/nman/default.nix @@ -1,9 +1,10 @@ { lib , writeRustSimpleBin +, testRustSimple , temp }: -writeRustSimpleBin "nman" { +testRustSimple (writeRustSimpleBin "nman" { meta = { license = lib.licenses.gpl3Only; description = "Open man page in a temporary nix-shell"; @@ -14,4 +15,4 @@ writeRustSimpleBin "nman" { postInstall = '' install -Dm644 ${./nman.1} "$out/share/man/man1/nman.1" ''; -} ./nman.rs +} ./nman.rs) |