nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "regex-cli";
10 version = "0.2.3";
11
12 src = fetchCrate {
13 inherit pname version;
14 hash = "sha256-ytI1C2QRUfInIChwtSaHze7VJnP9UIcO93e2wjz2/I0=";
15 };
16
17 cargoHash = "sha256-7fPoH6I8Okz8Oby45MIDdKBkbPgUPsaXd6XS3r3cRO8=";
18
19 passthru.updateScript = nix-update-script { };
20
21 meta = {
22 description = "Command line tool for debugging, ad hoc benchmarking and generating regular expressions";
23 mainProgram = "regex-cli";
24 homepage = "https://github.com/rust-lang/regex/tree/master/regex-cli";
25 license = with lib.licenses; [
26 asl20
27 mit
28 ];
29 maintainers = with lib.maintainers; [ mdaniels5757 ];
30 };
31}