summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorAidan Gauland <aidalgol@fastmail.net>2023-10-07 18:22:07 +1300
committerYt <happysalada@tuta.io>2023-10-20 08:02:21 +0000
commitd5be94e462be6a6dc99c1a977e88020b0404bc3c (patch)
tree2c37d8ea95535fba3e1e5f4022867ce766b61faf /pkgs/shells
parent89962f36112d73b38318583f2f1dd5159cf75167 (diff)
downloadnixpkgs-d5be94e462be6a6dc99c1a977e88020b0404bc3c.tar
nixpkgs-d5be94e462be6a6dc99c1a977e88020b0404bc3c.tar.gz
nixpkgs-d5be94e462be6a6dc99c1a977e88020b0404bc3c.tar.bz2
nixpkgs-d5be94e462be6a6dc99c1a977e88020b0404bc3c.tar.lz
nixpkgs-d5be94e462be6a6dc99c1a977e88020b0404bc3c.tar.xz
nixpkgs-d5be94e462be6a6dc99c1a977e88020b0404bc3c.tar.zst
nixpkgs-d5be94e462be6a6dc99c1a977e88020b0404bc3c.zip
nushellPlugins.regex: init at unstable-2023-10-08
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/nushell/plugins/default.nix1
-rw-r--r--pkgs/shells/nushell/plugins/regex.nix32
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/shells/nushell/plugins/default.nix b/pkgs/shells/nushell/plugins/default.nix
index 44b5b05a739..dfe2a4062c8 100644
--- a/pkgs/shells/nushell/plugins/default.nix
+++ b/pkgs/shells/nushell/plugins/default.nix
@@ -4,4 +4,5 @@ lib.makeScope newScope (self: with self; {
   gstat = callPackage ./gstat.nix { inherit Security; };
   formats = callPackage ./formats.nix { inherit IOKit Foundation; };
   query = callPackage ./query.nix { inherit IOKit CoreFoundation; };
+  regex = callPackage ./regex.nix { };
 })
diff --git a/pkgs/shells/nushell/plugins/regex.nix b/pkgs/shells/nushell/plugins/regex.nix
new file mode 100644
index 00000000000..457c7170a5b
--- /dev/null
+++ b/pkgs/shells/nushell/plugins/regex.nix
@@ -0,0 +1,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;
+  };
+}