nixpkgs-suyu/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 19:00:52 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, Security
, testers
2022-03-02 19:00:52 +01:00
, igrep
}:
rustPlatform.buildRustPackage rec {
pname = "igrep";
2022-04-24 20:12:28 +02:00
version = "0.5.0";
2022-03-02 19:00:52 +01:00
src = fetchFromGitHub {
owner = "konradsz";
repo = "igrep";
rev = "v${version}";
2022-04-24 20:12:28 +02:00
sha256 = "sha256-mJtxqwbqofiDuiGokn24qdnck27w7w/3A5mdqZIU88U=";
2022-03-02 19:00:52 +01:00
};
2022-04-24 20:12:28 +02:00
cargoSha256 = "sha256-ikU4SRLu7PQGbidPmf2W39e3sE8QY8YMU6Q0eWhgvLM=";
2022-03-02 19:00:52 +01:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
passthru.tests = {
version = testers.testVersion { package = igrep; command = "ig --version"; };
2022-03-02 19:00:52 +01:00
};
meta = with lib; {
description = "Interactive Grep";
homepage = "https://github.com/konradsz/igrep";
2022-03-04 17:08:41 +01:00
changelog = "https://github.com/konradsz/igrep/blob/v${version}/CHANGELOG.md";
2022-03-02 19:00:52 +01:00
license = licenses.mit;
maintainers = with maintainers; [ _0x4A6F ];
mainProgram = "ig";
2022-03-02 19:00:52 +01:00
};
}