about summary refs log tree commit diff
path: root/pkgs/profpatsch/nman/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/profpatsch/nman/default.nix')
-rw-r--r--pkgs/profpatsch/nman/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/profpatsch/nman/default.nix b/pkgs/profpatsch/nman/default.nix
new file mode 100644
index 00000000..10e5417f
--- /dev/null
+++ b/pkgs/profpatsch/nman/default.nix
@@ -0,0 +1,12 @@
+{ lib, runCommandCC }:
+
+runCommandCC "nman" {
+  meta = with lib; {
+    description = "Invoke manpage in temporary nix-shell";
+    license = licenses.gpl3;
+  };
+} ''
+    cc -o nman ${./nman.c}
+    install -D nman $out/bin/nman
+''
+