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
869 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";
2023-01-31 07:31:15 +00:00
version = "1.1.0";
2022-03-02 18:00:52 +00:00
src = fetchFromGitHub {
owner = "konradsz";
repo = "igrep";
rev = "v${version}";
2023-01-31 07:31:15 +00:00
sha256 = "sha256-g6DY3+HwBNQ+jxByXyTJK5CjAaC48FpmsDf1qGGO/Lk=";
2022-03-02 18:00:52 +00:00
};
2023-01-31 07:31:15 +00:00
cargoHash = "sha256-7cSUIwWyWPxFDuRWplidbI93zbBV84T7e4Q//Uwj6N4=";
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
};
}