summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-05-21 20:54:12 +0200
committerGitHub <noreply@github.com>2022-05-21 20:54:12 +0200
commit356c9d618d8397af992e78a59d2fc36243a27083 (patch)
tree4ba90a582fbef1c381bc1d874b8bf68126fe6c22 /pkgs/applications/misc
parentbf3b55c0387159df815d8dfbfa286a2180e65e0b (diff)
parentfd8983a40e68a67a471bf29d2807963ec5960807 (diff)
Merge pull request #172302 from chvp/init-uni
uni: init at 2.5.1
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/uni/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/applications/misc/uni/default.nix b/pkgs/applications/misc/uni/default.nix
new file mode 100644
index 0000000000000..61ea6578787f2
--- /dev/null
+++ b/pkgs/applications/misc/uni/default.nix
@@ -0,0 +1,24 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "uni";
+  version = "2.5.1";
+
+  src = fetchFromGitHub {
+    owner = "arp242";
+    repo = "uni";
+    rev = "v${version}";
+    sha256 = "kWiglMuJdcD7z2MDfz1MbItB8r9BJ7LUqfPfJa8QkLA=";
+  };
+
+  vendorSha256 = "6HNFCUSJA6oduCx/SCUQQeCHGS7ohaWRunixdwMurBw=";
+
+  ldflags = [ "-s" "-w" "-X main.version=${version}" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/arp242/uni";
+    description = "Query the Unicode database from the commandline, with good support for emojis";
+    license = licenses.mit;
+    maintainers = with maintainers; [ chvp ];
+  };
+}