From ccd2165aec0d94a523a58ec5c8b8499c636d461d Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Sat, 9 Mar 2024 22:16:49 +1300 Subject: [PATCH] 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. --- pkgs/shells/nushell/plugins/default.nix | 2 +- pkgs/shells/nushell/plugins/regex.nix | 35 ------------------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 pkgs/shells/nushell/plugins/regex.nix diff --git a/pkgs/shells/nushell/plugins/default.nix b/pkgs/shells/nushell/plugins/default.nix index f4571d4da002..eb8bbe14c281 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 4689a8390257..000000000000 --- 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; - }; -}