diff options
author | Profpatsch <mail@profpatsch.de> | 2017-11-27 17:22:02 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2017-11-27 17:24:23 +0100 |
commit | 8cfdb0713122a9b8f2ea236b9505ae36bb48d39b (patch) | |
tree | df91489977f0784e9503d593cc98b9a18f171f01 /pkgs/profpatsch/nman/default.nix | |
parent | 86deeebebd7be59aca81819800293f329b22f46b (diff) |
pkgs/profpatsch/nman: rewrite in golang
Apart from using the go compiler, switch from `nix-shell -p`, which only worked in certain cases, to a `nix-build` with fallback for `man` and default outputs. Thanks to @muesli for the golang intro.
Diffstat (limited to 'pkgs/profpatsch/nman/default.nix')
-rw-r--r-- | pkgs/profpatsch/nman/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/profpatsch/nman/default.nix b/pkgs/profpatsch/nman/default.nix index 10e5417f..b9b967cf 100644 --- a/pkgs/profpatsch/nman/default.nix +++ b/pkgs/profpatsch/nman/default.nix @@ -1,12 +1,12 @@ -{ lib, runCommandCC }: +{ lib, runCommandNoCC, go }: -runCommandCC "nman" { +runCommandNoCC "nman" { meta = with lib; { description = "Invoke manpage in temporary nix-shell"; license = licenses.gpl3; }; } '' - cc -o nman ${./nman.c} + ${lib.getBin go}/bin/go build -o nman ${./nman.go} install -D nman $out/bin/nman '' |