about summary refs log tree commit diff
path: root/pkgs/by-name/ni
diff options
context:
space:
mode:
authorEmery Hemingway <ehmry@posteo.net>2023-10-31 16:00:06 +0000
committerEmery Hemingway <ehmry@posteo.net>2023-11-28 16:48:10 +0200
commit48840e17625420eb9ab9a165a368379e600b3714 (patch)
treefed10a0b349f2bee1ec473392b11dfd57dab3fca /pkgs/by-name/ni
parenta7758d7dd8222ae1e0187b41aa38b412d446d6dc (diff)
downloadnixlib-48840e17625420eb9ab9a165a368379e600b3714.tar
nixlib-48840e17625420eb9ab9a165a368379e600b3714.tar.gz
nixlib-48840e17625420eb9ab9a165a368379e600b3714.tar.bz2
nixlib-48840e17625420eb9ab9a165a368379e600b3714.tar.lz
nixlib-48840e17625420eb9ab9a165a368379e600b3714.tar.xz
nixlib-48840e17625420eb9ab9a165a368379e600b3714.tar.zst
nixlib-48840e17625420eb9ab9a165a368379e600b3714.zip
nitch: use new buildNimPackage
Diffstat (limited to 'pkgs/by-name/ni')
-rw-r--r--pkgs/by-name/ni/nitch/package.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/ni/nitch/package.nix b/pkgs/by-name/ni/nitch/package.nix
new file mode 100644
index 000000000000..772f259ba6fc
--- /dev/null
+++ b/pkgs/by-name/ni/nitch/package.nix
@@ -0,0 +1,32 @@
+{ lib, buildNimPackage, fetchFromGitHub, fetchpatch }:
+
+buildNimPackage {
+  pname = "nitch";
+  version = "0.1.6";
+  src = fetchFromGitHub {
+    owner = "ssleert";
+    repo = "nitch";
+    rev = "42ad6899931dd5e0cec7b021c2b7e383fcc891f3";
+    hash = "sha256-QI7CbP0lvvjD+g29FR/YJjuZboZ+PoHynsNbpYC9SvE=";
+  };
+
+  patches = [
+    (fetchpatch {
+      url = "https://github.com/unxsh/nitch/commit/6831cf96144f58c4da298a0bc9b50d33056f6c08.patch";
+      sha256 = "sha256-uZUzUBLHBsssNqDxZ0NuTRMN9/gBxIlIiGgQkqCqEFc=";
+    })
+    (fetchpatch {
+      url = "https://github.com/ssleert/nitch/commit/ff10dea47dbc4d9736bd839b87869f53166cf395.patch";
+      hash = "sha256-n7JtI1Td0xMqhuScnMvxTkbY2I+l+FcUTz7aytxFasE=";
+    })
+  ];
+
+  meta = with lib; {
+    description = "Incredibly fast system fetch written in nim";
+    homepage = "https://github.com/unxsh/nitch";
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ michaelBelsanti ];
+    mainProgram = "nitch";
+  };
+}