about summary refs log tree commit diff
path: root/pkgs/profpatsch/nman/default.nix
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-02-11 13:27:18 +0100
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-02-11 13:29:38 +0100
commit5bd756eaf27882820cb59e0ecf9c305f08b3b3e3 (patch)
tree7c9a2be8c947b6fb4ae3e144a0cf8de3c61b0efc /pkgs/profpatsch/nman/default.nix
parent249ebd12a60a8828f79af0a36b1e049afac8b4d0 (diff)
modules/user/sternenseemann/sway: fix startup by enabling opengl
sway needs opengl driver's to be enabled and loadable in order to start.
I previously didn't notice this oversight as I still had them loaded and
did not reboot after the rebuild.
Diffstat (limited to 'pkgs/profpatsch/nman/default.nix')
-rw-r--r--pkgs/profpatsch/nman/default.nix15
1 files changed, 2 insertions, 13 deletions
diff --git a/pkgs/profpatsch/nman/default.nix b/pkgs/profpatsch/nman/default.nix
index 96699833..bb4b4544 100644
--- a/pkgs/profpatsch/nman/default.nix
+++ b/pkgs/profpatsch/nman/default.nix
@@ -1,14 +1,3 @@
-{ 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 }:
 
+writeRustSimpleBin "nman" {} ./nman.rs