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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
830 B
Nix
Raw Normal View History

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