about summary refs log tree commit diff
path: root/pkgs/profpatsch/nman/default.nix
blob: 96699833941f592fc1b6db4af83f75d9a8a3f53e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ 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
''