igrep: init at 0.1.2
This commit is contained in:
parent
28e52fe496
commit
df4ad8d0fd
35
pkgs/tools/text/igrep/default.nix
Normal file
35
pkgs/tools/text/igrep/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -6199,6 +6199,10 @@ with pkgs;
|
|||
|
||||
grin = callPackage ../tools/text/grin { };
|
||||
|
||||
igrep = callPackage ../tools/text/igrep {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
ripgrep = callPackage ../tools/text/ripgrep {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue