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
912 B
Nix
Raw Normal View History

{ lib, stdenv
2020-08-06 08:34:20 +00:00
, fetchFromGitHub
, rustPlatform
2021-02-12 03:23:51 +00:00
, Security
2020-08-06 08:34:20 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "grex";
2024-03-06 12:32:29 +00:00
version = "1.4.5";
2020-08-06 08:34:20 +00:00
src = fetchFromGitHub {
owner = "pemistahl";
repo = "grex";
2020-08-06 08:34:20 +00:00
rev = "v${version}";
2024-03-06 12:32:29 +00:00
hash = "sha256-Ut2H2H66XN1+wHpYivnuhil21lbd7bwIcIcMyIimdis=";
2020-08-06 08:34:20 +00:00
};
2024-03-06 12:32:29 +00:00
cargoHash = "sha256-ZRE1vKgi0/UtSe2bdN0BLdtDfAauTfwcqOcl3y63fAA=";
2022-07-27 20:51:18 +00:00
2021-02-12 03:23:51 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
2020-08-06 08:34:20 +00:00
doInstallCheck = true;
installCheckPhase = ''
$out/bin/grex --help > /dev/null
'';
meta = with lib; {
2020-08-06 08:34:20 +00:00
description = "A 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}";
2020-08-06 08:34:20 +00:00
license = licenses.asl20;
mainProgram = "grex";
maintainers = with maintainers; [ SuperSandro2000 mfrw ];
2020-08-06 08:34:20 +00:00
};
}