nixpkgs/pkgs/tools/text/igrep/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
871 B
Nix
Raw Normal View History

2022-03-02 18:00:52 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, Security
, testers
2022-03-02 18:00:52 +00:00
, igrep
}:
rustPlatform.buildRustPackage rec {
pname = "igrep";
2022-08-16 14:03:31 +01:00
version = "0.5.1";
2022-03-02 18:00:52 +00:00
src = fetchFromGitHub {
owner = "konradsz";
repo = "igrep";
rev = "v${version}";
2022-08-16 14:03:31 +01:00
sha256 = "sha256-Blfkis0Ix0qhSt83YxRqJQJ2oQQK9DGmI60OkyQN5CE=";
2022-03-02 18:00:52 +00:00
};
2022-08-16 14:03:31 +01:00
cargoSha256 = "sha256-wEprTtD9/kKtGsbpj7gR+PjsDSAdl39ZoeU5BAGERRQ=";
2022-03-02 18:00:52 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
passthru.tests = {
version = testers.testVersion { package = igrep; command = "ig --version"; };
2022-03-02 18:00:52 +00:00
};
meta = with lib; {
description = "Interactive Grep";
homepage = "https://github.com/konradsz/igrep";
2022-03-04 16:08:41 +00:00
changelog = "https://github.com/konradsz/igrep/blob/v${version}/CHANGELOG.md";
2022-03-02 18:00:52 +00:00
license = licenses.mit;
maintainers = with maintainers; [ _0x4A6F ];
mainProgram = "ig";
2022-03-02 18:00:52 +00:00
};
}