summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-03-04 11:53:44 +0100
committerGitHub <noreply@github.com>2022-03-04 11:53:44 +0100
commitdf6fea3736157a1c74849eeacce3b370bb5fe4f8 (patch)
treee42c6f573db8c48b7dbce1411a117ecf3dc79600 /pkgs/tools/text
parent4d5b1d6b273fc4acd5dce966d2e9c0ca197b6df2 (diff)
parentdf4ad8d0fd7ecaecb5950dcdded19228a0a9e8a7 (diff)
downloadnixpkgs-df6fea3736157a1c74849eeacce3b370bb5fe4f8.tar
nixpkgs-df6fea3736157a1c74849eeacce3b370bb5fe4f8.tar.gz
nixpkgs-df6fea3736157a1c74849eeacce3b370bb5fe4f8.tar.bz2
nixpkgs-df6fea3736157a1c74849eeacce3b370bb5fe4f8.tar.lz
nixpkgs-df6fea3736157a1c74849eeacce3b370bb5fe4f8.tar.xz
nixpkgs-df6fea3736157a1c74849eeacce3b370bb5fe4f8.tar.zst
nixpkgs-df6fea3736157a1c74849eeacce3b370bb5fe4f8.zip
Merge pull request #162516 from 0x4A6F/master-igrep
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/igrep/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/text/igrep/default.nix b/pkgs/tools/text/igrep/default.nix
new file mode 100644
index 00000000000..5a05501f1eb
--- /dev/null
+++ b/pkgs/tools/text/igrep/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, stdenv
+, Security
+, testVersion
+, igrep
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "igrep";
+  version = "0.1.2";
+
+  src = fetchFromGitHub {
+    owner = "konradsz";
+    repo = "igrep";
+    rev = "v${version}";
+    sha256 = "sha256-ZbJogp4rTc3GAD71iQUIf5EqwJ8XD9/WmvdAcGIgcvY=";
+  };
+
+  cargoSha256 = "sha256-sj2GEyUPq9+JXlGpKYRNfhfwGf5F/J46AoOjUu4xm7I=";
+
+  buildInputs = lib.optionals stdenv.isDarwin [ Security ];
+
+  passthru.tests = {
+    version = testVersion { package = igrep; command = "ig --version"; };
+  };
+
+  meta = with lib; {
+    description = "Interactive Grep";
+    homepage = "https://github.com/konradsz/igrep";
+    license = licenses.mit;
+    maintainers = with maintainers; [ _0x4A6F ];
+  };
+}