nushell: get formats plugin from nixpkgs
This commit is contained in:
parent
345e0ec853
commit
0c53e0aedb
2 changed files with 1 additions and 41 deletions
|
@ -2,12 +2,6 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.eboskma.programs.nushell;
|
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
|
in
|
||||||
{
|
{
|
||||||
options.eboskma.programs.nushell = { enable = mkEnableOption "nu shell"; };
|
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)
|
$env.LS_COLORS = (${pkgs.vivid}/bin/vivid generate gruvbox-dark | str trim)
|
||||||
|
|
||||||
register ${pkgs.nushellPlugins.query}/bin/nu_plugin_query
|
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
|
use kink.nu
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue