nixpkgs/pkgs/tools/misc/grex/default.nix

36 lines
832 B
Nix
Raw Normal View History

{ lib, stdenv
2020-08-06 09:34:20 +01:00
, fetchFromGitHub
, fetchpatch
, rustPlatform
2021-02-12 03:23:51 +00:00
, Security
2020-08-06 09:34:20 +01:00
, libiconv
}:
rustPlatform.buildRustPackage rec {
pname = "grex";
version = "1.1.0";
cargoSha256 = "0kf2n2j7kfrfzid1h2gd0qf53fah0hpyrrlh2k5vrhd0panv3bwc";
src = fetchFromGitHub {
owner = "pemistahl";
repo = pname;
rev = "v${version}";
sha256 = "1viph7ki6f2akc5mpbgycacndmxnv088ybfji2bfdbi5jnpyavvs";
};
2021-02-12 03:23:51 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
2020-08-06 09:34:20 +01:00
doInstallCheck = true;
installCheckPhase = ''
$out/bin/grex --help > /dev/null
'';
meta = with lib; {
2020-08-06 09:34:20 +01:00
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 ];
};
}