about summary refs log tree commit diff
path: root/pkgs/larbs-scripts/dmenuunicode.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/larbs-scripts/dmenuunicode.nix')
-rw-r--r--pkgs/larbs-scripts/dmenuunicode.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/larbs-scripts/dmenuunicode.nix b/pkgs/larbs-scripts/dmenuunicode.nix
new file mode 100644
index 0000000..29070cf
--- /dev/null
+++ b/pkgs/larbs-scripts/dmenuunicode.nix
@@ -0,0 +1,20 @@
+{ stdenv, callPackage }:
+let
+  voidrice = callPackage ../voidrice.nix { };
+  dmenu = callPackage ../dmenu { };
+in
+stdenv.mkDerivation {
+  name = "dmenuunicode";
+
+  src = voidrice;
+
+  installPhase = ''
+    mkdir -p $out/bin
+    mkdir -p $out/share
+    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
+  '';
+}