about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/larbs-scripts/default.nix4
-rw-r--r--pkgs/larbs-scripts/displayselect.nix28
-rw-r--r--pkgs/larbs-scripts/displayselect/default.nix6
-rw-r--r--pkgs/larbs-scripts/displayselect/displayselect.nix13
-rw-r--r--pkgs/larbs-scripts/dmenuunicode.nix (renamed from pkgs/dmenuunicode/default.nix)13
5 files changed, 37 insertions, 27 deletions
diff --git a/pkgs/larbs-scripts/default.nix b/pkgs/larbs-scripts/default.nix
index 6bff5cd..b4e2c8a 100644
--- a/pkgs/larbs-scripts/default.nix
+++ b/pkgs/larbs-scripts/default.nix
@@ -2,13 +2,13 @@
 with stdenv.lib;
 let
   setbg = callPackage ./setbg.nix { };
-  ds = callPackage ./displayselect { };
+  displayselect = callPackage ./displayselect.nix { };
 in
   buildEnv {
     name = "larbs-scripts";
     paths = [
       setbg
-      ds
+      displayselect
     ];
 
     meta = {
diff --git a/pkgs/larbs-scripts/displayselect.nix b/pkgs/larbs-scripts/displayselect.nix
new file mode 100644
index 0000000..54b6fe1
--- /dev/null
+++ b/pkgs/larbs-scripts/displayselect.nix
@@ -0,0 +1,28 @@
+{ stdenv, buildEnv, callPackage, xrandr, libnotify, arandr }:
+with stdenv.lib;
+
+let
+  voidrice = callPackage ../voidrice.nix { };
+  dmenu = callPackage ../dmenu { };
+in
+  buildEnv {
+    name = "displayselect";
+
+    paths = [
+      xrandr
+      arandr
+      libnotify
+      dmenu
+    ];
+
+    postBuild = ''
+      mkdir -p $out/bin
+      cp ${voidrice}/.local/bin/displayselect $out/bin
+    '';
+
+
+    meta = {
+      description = "A fancy monitor configuration menu.";
+      homepage = "https://github.com/LukeSmithXYZ/voidrice";
+    };
+  }
diff --git a/pkgs/larbs-scripts/displayselect/default.nix b/pkgs/larbs-scripts/displayselect/default.nix
deleted file mode 100644
index f7e0c7f..0000000
--- a/pkgs/larbs-scripts/displayselect/default.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{ callPackage }:
-let
-  wrapDS = callPackage ./wrapper.nix { };
-  ds = callPackage ./displayselect.nix { };
-in
-  wrapDS ds { }
diff --git a/pkgs/larbs-scripts/displayselect/displayselect.nix b/pkgs/larbs-scripts/displayselect/displayselect.nix
deleted file mode 100644
index e643924..0000000
--- a/pkgs/larbs-scripts/displayselect/displayselect.nix
+++ /dev/null
@@ -1,13 +0,0 @@
-{ stdenv, callPackage }:
-let
-  voidrice = callPackage ../../voidrice.nix { };
-in
-  stdenv.mkDerivation {
-    name = "displayselect";
-    src = voidrice;
-
-    installPhase = ''
-      mkdir -p $out/bin
-      cp ${voidrice}/.local/bin/displayselect $out/bin/displayselect
-    '';
-  }
diff --git a/pkgs/dmenuunicode/default.nix b/pkgs/larbs-scripts/dmenuunicode.nix
index 2cb6b70..29070cf 100644
--- a/pkgs/dmenuunicode/default.nix
+++ b/pkgs/larbs-scripts/dmenuunicode.nix
@@ -1,12 +1,12 @@
-{ stdenv, fetchgit }:
+{ stdenv, callPackage }:
+let
+  voidrice = callPackage ../voidrice.nix { };
+  dmenu = callPackage ../dmenu { };
+in
 stdenv.mkDerivation {
   name = "dmenuunicode";
 
-  src = fetchgit {
-    url = "https://github.com/LukeSmithxyz/voidrice";
-    rev = "d92bd73428f7c13ec3c3860ab8ee518c336ec458";
-    sha256 = "1gjls1x3r7i0y6f3fkzhfqfv9zc6l6b2q13zygzcggqcwc3xmanm";
-  };
+  src = voidrice;
 
   installPhase = ''
     mkdir -p $out/bin
@@ -14,6 +14,7 @@ stdenv.mkDerivation {
     cp .local/share/larbs/emoji $out/share
 
     sed -i "s:~/.local/share/larbs/emoji:$out/share/emoji:" .local/bin/dmenuunicode
+    sed -i "s:dmenu:${dmenu}/bin/dmenu:g" .local/bin/dmenuunicode
     cp .local/bin/dmenuunicode $out/bin
   '';
 }