summary refs log tree commit diff
path: root/pkgs/shells/nushell/plugins/regex.nix
blob: 457c7170a5b3e1cc8e04c4e85af8985a4e8c29cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
}:

rustPlatform.buildRustPackage {
  pname = "nushell_plugin_regex";
  version = "unstable-2023-10-08";

  src = fetchFromGitHub {
    owner = "fdncred";
    repo = "nu_plugin_regex";
    rev = "e1aa88e703f1f632ede685dd733472d34dd0c8e7";
    hash = "sha256-GJgnsaeNDJoJjw8RPw6wpEq1mIult18Eh4frl8Plgxc=";
  };

  cargoHash = "sha256-AACpzSavY6MlYnl1lDYxVlfsEvEpNK0u8SzsoSZbqFc=";

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = with lib; {
    description = "A Nushell plugin to parse regular expressions";
    homepage = "https://github.com/fdncred/nu_plugin_regex";
    license = licenses.mit;
    maintainers = with maintainers; [ aidalgol ];
    platforms = with platforms; all;
  };
}