igrep: init at 0.1.2

This commit is contained in:
0x4A6F 2022-03-02 19:00:52 +01:00
parent 28e52fe496
commit df4ad8d0fd
No known key found for this signature in database
GPG key ID: 8DEDBA5BE07080E1
2 changed files with 39 additions and 0 deletions

View 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 ];
};
}

View file

@ -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;
};