about summary refs log tree commit diff
path: root/pkgs/larbs-scripts/dmenuunicode.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-05 22:25:33 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-05 22:25:33 +0200
commit9be00a1b0eaa19d3784c3abb823f3e2ebe80f716 (patch)
treee5c257478b7ac4ca7bcfd2be0c057631fd6f5e3a /pkgs/larbs-scripts/dmenuunicode.nix
parentf1055110d259c36d7c3a968db3c5120341553a6c (diff)
downloadpnpkgs-9be00a1b0eaa19d3784c3abb823f3e2ebe80f716.tar.gz
pnpkgs-9be00a1b0eaa19d3784c3abb823f3e2ebe80f716.zip
Update larbs-scripts
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
+  '';
+}