depot/third_party/nixpkgs/pkgs/tools/misc/grex/default.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

41 lines
977 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
Security,
}:
rustPlatform.buildRustPackage rec {
pname = "grex";
version = "1.4.5";
src = fetchFromGitHub {
owner = "pemistahl";
repo = "grex";
rev = "v${version}";
hash = "sha256-Ut2H2H66XN1+wHpYivnuhil21lbd7bwIcIcMyIimdis=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-OsK6X7qwMMQ1FK3JE98J2u6pn6AixE8izFmxUVDs5GM=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
doInstallCheck = true;
installCheckPhase = ''
$out/bin/grex --help > /dev/null
'';
meta = with lib; {
description = "Command-line tool for generating regular expressions from user-provided test cases";
homepage = "https://github.com/pemistahl/grex";
changelog = "https://github.com/pemistahl/grex/releases/tag/v${version}";
license = licenses.asl20;
mainProgram = "grex";
maintainers = with maintainers; [
SuperSandro2000
mfrw
];
};
}