From 9be00a1b0eaa19d3784c3abb823f3e2ebe80f716 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 5 Oct 2020 22:25:33 +0200 Subject: Update larbs-scripts --- pkgs/larbs-scripts/dmenuunicode.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pkgs/larbs-scripts/dmenuunicode.nix (limited to 'pkgs/larbs-scripts/dmenuunicode.nix') 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 + ''; +} -- cgit 1.4.1