diff options
author | 0x4A6F <0x4A6F@users.noreply.github.com> | 2022-03-02 19:00:52 +0100 |
---|---|---|
committer | 0x4A6F <0x4A6F@users.noreply.github.com> | 2022-03-02 19:00:52 +0100 |
commit | df4ad8d0fd7ecaecb5950dcdded19228a0a9e8a7 (patch) | |
tree | 12d3e7b8cee8ea408690d093196c6b9868cfba94 /pkgs/tools/text | |
parent | 28e52fe4960f5ead65cd9c4e2b032e2511a59afe (diff) |
igrep: init at 0.1.2
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 ]; + }; +} |