35 lines
845 B
Nix
35 lines
845 B
Nix
|
{ stdenv
|
||
|
, lib
|
||
|
, rustPlatform
|
||
|
, nushell
|
||
|
, IOKit
|
||
|
, CoreFoundation
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
pname = "nushell_plugin_formats";
|
||
|
in
|
||
|
rustPlatform.buildRustPackage {
|
||
|
inherit pname;
|
||
|
version = nushell.version;
|
||
|
|
||
|
src = nushell.src;
|
||
|
|
||
|
cargoHash = "sha256-7cMUFCG6tL/Mj3An1+HA8Z7auBkJ/nvgPc/mm+t074E=";
|
||
|
|
||
|
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;
|
||
|
};
|
||
|
}
|