nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 37 lines 807 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 testers, 6 igrep, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "igrep"; 11 version = "1.3.0"; 12 13 src = fetchFromGitHub { 14 owner = "konradsz"; 15 repo = "igrep"; 16 rev = "v${version}"; 17 hash = "sha256-ZZhzBGLpzd9+rok+S/ypKpWXVzXaA1CnviC7LfgP/CU="; 18 }; 19 20 cargoHash = "sha256-NZN9pB9McZkTlpGgAbxi8bwn+aRiPMymGmBLYBc6bmw="; 21 22 passthru.tests = { 23 version = testers.testVersion { 24 package = igrep; 25 command = "ig --version"; 26 }; 27 }; 28 29 meta = { 30 description = "Interactive Grep"; 31 homepage = "https://github.com/konradsz/igrep"; 32 changelog = "https://github.com/konradsz/igrep/blob/v${version}/CHANGELOG.md"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ _0x4A6F ]; 35 mainProgram = "ig"; 36 }; 37}