summary refs log tree commit diff
path: root/pkgs/applications/misc/unipicker
diff options
context:
space:
mode:
authorKarthik Iyengar <hello@kiyengar.net>2021-03-25 17:22:20 +0100
committerKarthik Iyengar <hello@kiyengar.net>2021-03-25 17:22:20 +0100
commit60074da0deeee65c6294f6f3394105ce7cdc06e7 (patch)
tree844bb09356e2e1c203f1d8d5c2aea314a664231f /pkgs/applications/misc/unipicker
parentc17c39cc611cfd0058417cc6a3431ead85ad3c1a (diff)
downloadnixpkgs-60074da0deeee65c6294f6f3394105ce7cdc06e7.tar
nixpkgs-60074da0deeee65c6294f6f3394105ce7cdc06e7.tar.gz
nixpkgs-60074da0deeee65c6294f6f3394105ce7cdc06e7.tar.bz2
nixpkgs-60074da0deeee65c6294f6f3394105ce7cdc06e7.tar.lz
nixpkgs-60074da0deeee65c6294f6f3394105ce7cdc06e7.tar.xz
nixpkgs-60074da0deeee65c6294f6f3394105ce7cdc06e7.tar.zst
nixpkgs-60074da0deeee65c6294f6f3394105ce7cdc06e7.zip
unipicker: init at unstable-2018-07-10
Diffstat (limited to 'pkgs/applications/misc/unipicker')
-rw-r--r--pkgs/applications/misc/unipicker/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/misc/unipicker/default.nix b/pkgs/applications/misc/unipicker/default.nix
new file mode 100644
index 00000000000..fc47a872848
--- /dev/null
+++ b/pkgs/applications/misc/unipicker/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchFromGitHub, lib, fzf, xclip }:
+
+stdenv.mkDerivation rec {
+   pname = "unipicker";
+   version = "unstable-2018-07-10";
+
+   src = fetchFromGitHub {
+      owner = "jeremija";
+      repo = pname;
+      rev = "767571c87cdb1e654408d19fc4db98e5e6725c04";
+      sha256 = "1k4v53pm3xivwg9vq2kndpcmah0yn4679r5jzxvg38bbkfdk86c1";
+   };
+
+   buildInputs = [
+      fzf
+      xclip
+   ];
+
+   preInstall = ''
+      substituteInPlace unipicker --replace "/etc/unipickerrc" "$out/etc/unipickerrc"
+      substituteInPlace unipickerrc --replace "/usr/local" "$out"
+   '';
+
+   makeFlags = [
+      "PREFIX=$(out)"
+      "DESTDIR=$(out)"
+   ];
+
+   meta = with lib; {
+    description = "A CLI utility for searching unicode characters by description and optionally copying them to clipboard";
+    homepage = "https://github.com/jeremija/unipicker";
+    license = licenses.mit;
+    maintainers = with maintainers; [ kiyengar ];
+    platforms = with platforms; unix;
+   };
+}