diff options
Diffstat (limited to 'pkgs/profpatsch/nman/default.nix')
-rw-r--r-- | pkgs/profpatsch/nman/default.nix | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/pkgs/profpatsch/nman/default.nix b/pkgs/profpatsch/nman/default.nix index 96699833..9d74d63b 100644 --- a/pkgs/profpatsch/nman/default.nix +++ b/pkgs/profpatsch/nman/default.nix @@ -1,14 +1,8 @@ -{ lib, runCommand, go }: +{ lib, writeRustSimpleBin }: -runCommand "nman" { - meta = with lib; { - description = "Invoke manpage in temporary nix-shell"; - license = licenses.gpl3; +writeRustSimpleBin "nman" { + meta = { + license = lib.licenses.gpl3Only; + description = "Open man page in a temporary nix-shell"; }; -} '' - mkdir cache - env GOCACHE="$PWD/cache" \ - ${lib.getBin go}/bin/go build -o nman ${./nman.go} - install -D nman $out/bin/nman -'' - +} ./nman.rs |