blob: bbf4f00f3e8b02a2f85b9fb4538b4f8a48a7650f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{ lib, runCommandNoCC, go }:
runCommandNoCC "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
''
|