about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorAidan Gauland <aidalgol@fastmail.net>2024-03-09 22:16:49 +1300
committerAidan Gauland <aidalgol@fastmail.net>2024-03-09 22:16:49 +1300
commitccd2165aec0d94a523a58ec5c8b8499c636d461d (patch)
treef5f7f345b2ce98f85203a0a4c9abec3f359d45a7 /pkgs/shells
parent7b9f4b6febde110cbe247ec71ec76da14b5c48ca (diff)
nushellPlugins.regex: remove
The current version in nixpkgs is no longer compatible with the current
version of Nushell, and upstream is tracking the development branch of
Nushell, and is incompatible with the stable release of Nushell.

Background: https://github.com/fdncred/nu_plugin_regex/issues/3

This only made it into nixpkgs because there was a window in which the
Nushell plugin API in the released version and the version used by this
plugin were compatible.
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/nushell/plugins/default.nix2
-rw-r--r--pkgs/shells/nushell/plugins/regex.nix35
2 files changed, 1 insertions, 36 deletions
diff --git a/pkgs/shells/nushell/plugins/default.nix b/pkgs/shells/nushell/plugins/default.nix
index f4571d4da0026..eb8bbe14c2815 100644
--- a/pkgs/shells/nushell/plugins/default.nix
+++ b/pkgs/shells/nushell/plugins/default.nix
@@ -4,6 +4,6 @@ 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 { inherit IOKit; };
+  regex = throw "`nu_plugin_regex` is no longer compatible with the current Nushell release.";
   net = callPackage ./net.nix { inherit IOKit CoreFoundation; };
 })
diff --git a/pkgs/shells/nushell/plugins/regex.nix b/pkgs/shells/nushell/plugins/regex.nix
deleted file mode 100644
index 4689a83902574..0000000000000
--- a/pkgs/shells/nushell/plugins/regex.nix
+++ /dev/null
@@ -1,35 +0,0 @@
-{ stdenv
-, lib
-, rustPlatform
-, fetchFromGitHub
-, nix-update-script
-, IOKit
-}:
-
-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=";
-
-  buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];
-
-  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;
-  };
-}