diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-03-04 11:53:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 11:53:44 +0100 |
commit | df6fea3736157a1c74849eeacce3b370bb5fe4f8 (patch) | |
tree | e42c6f573db8c48b7dbce1411a117ecf3dc79600 /pkgs/tools/text | |
parent | 4d5b1d6b273fc4acd5dce966d2e9c0ca197b6df2 (diff) | |
parent | df4ad8d0fd7ecaecb5950dcdded19228a0a9e8a7 (diff) |
Merge pull request #162516 from 0x4A6F/master-igrep
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/igrep/default.nix | 35 |
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 0000000000000..5a05501f1eb59 --- /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 ]; + }; +} |