mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
36 lines
858 B
Nix
36 lines
858 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, rustPlatform
|
|
, darwin
|
|
, libiconv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "grex";
|
|
version = "1.1.0";
|
|
|
|
cargoSha256 = "0kf2n2j7kfrfzid1h2gd0qf53fah0hpyrrlh2k5vrhd0panv3bwc";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pemistahl";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1viph7ki6f2akc5mpbgycacndmxnv088ybfji2bfdbi5jnpyavvs";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.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 ];
|
|
};
|
|
}
|