diff --git a/home-manager/modules/nushell/default.nix b/home-manager/modules/nushell/default.nix index d2c168f..3cd5625 100644 --- a/home-manager/modules/nushell/default.nix +++ b/home-manager/modules/nushell/default.nix @@ -2,12 +2,6 @@ with lib; let cfg = config.eboskma.programs.nushell; - - nushell_plugin_formats = pkgs.callPackage ./plugin-formats.nix { - inherit (pkgs) stdenv lib rustPlatform; - inherit (pkgs.darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation; - nushell = config.programs.nushell.package; - }; in { options.eboskma.programs.nushell = { enable = mkEnableOption "nu shell"; }; @@ -32,7 +26,7 @@ in $env.LS_COLORS = (${pkgs.vivid}/bin/vivid generate gruvbox-dark | str trim) register ${pkgs.nushellPlugins.query}/bin/nu_plugin_query - register ${nushell_plugin_formats}/bin/nu_plugin_formats + register ${pkgs.nushellPlugins.formats}/bin/nu_plugin_formats use kink.nu ''; diff --git a/home-manager/modules/nushell/plugin-formats.nix b/home-manager/modules/nushell/plugin-formats.nix deleted file mode 100644 index 1ddf97c..0000000 --- a/home-manager/modules/nushell/plugin-formats.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ stdenv -, lib -, rustPlatform -, nushell -, IOKit -, CoreFoundation -}: - -let - pname = "nushell_plugin_formats"; -in -rustPlatform.buildRustPackage { - inherit pname; - version = nushell.version; - - src = nushell.src; - - cargoHash = "sha256-pwOdSJHd9njR0lr4n2EzCcqRonh0cbBHGZgAJ1l8FEk="; - - buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ]; - - cargoBuildFlags = [ "--package nu_plugin_formats" ]; - - # compilation fails with a missing symbol - doCheck = false; - - meta = with lib; { - description = "A Nushell plugin to convert various data formats"; - homepage = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_formats"; - license = licenses.mpl20; - maintainers = [{ email = "erwin@datarift.nl"; github = "eboskma"; name = "Erwin Boskma"; githubId = 346752; }]; - platforms = with platforms; all; - }; -}