mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
a990f74cf8
* tumpa: sha256 -> hash * qubes-core-vchan-xen: sha256 -> hash * qdmr: sha256 -> hash * w_scan2: sha256 -> hash * libcdada: sha256 -> hash * eidolon: sha256 -> hash * freenukum: sha256 -> hash * promscale: sha256 -> hash * tacacsplus: sha256 -> hash * blflash: sha256 -> hash * silicon: sha256 -> hash * nethoscope: sha256 -> hash * pmacct: sha256 -> hash * tayga: sha256 -> hash * alejandra: sha256 -> hash * igrep: sha256 -> hash * cwm: sha256 -> hash * dasel: sha256 -> hash
38 lines
867 B
Nix
38 lines
867 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, Security
|
|
, testers
|
|
, igrep
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "igrep";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "konradsz";
|
|
repo = "igrep";
|
|
rev = "v${version}";
|
|
hash = "sha256-L5mHuglU0CvTi02pbR8xfezBoH8L/DS+7jgvYvb4yro=";
|
|
};
|
|
|
|
cargoHash = "sha256-k63tu5Ffus4z0yd8vQ79q4+tokWAXD05Pvv9JByfnDg=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion { package = igrep; command = "ig --version"; };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Interactive Grep";
|
|
homepage = "https://github.com/konradsz/igrep";
|
|
changelog = "https://github.com/konradsz/igrep/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
|
mainProgram = "ig";
|
|
};
|
|
}
|