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