bba55970ba
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
35 lines
830 B
Nix
35 lines
830 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, rustPlatform
|
|
, Security
|
|
, libiconv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "grex";
|
|
version = "1.2.0";
|
|
|
|
cargoSha256 = "sha256-EZnuGoysTZMpk2pndOzfXyRnN696RpKze27utQWNFTY=";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pemistahl";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-3M6wQB7+1MKPcxSvjDTNs33TrFjCEeFlbh1akwJHLLU=";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
$out/bin/grex --help > /dev/null
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A command-line tool for generating regular expressions from user-provided test cases";
|
|
homepage = "https://github.com/pemistahl/grex";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|