about summary refs log tree commit diff
path: root/pkgs/shells/nushell/plugins/formats.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/shells/nushell/plugins/formats.nix')
-rw-r--r--pkgs/shells/nushell/plugins/formats.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/shells/nushell/plugins/formats.nix b/pkgs/shells/nushell/plugins/formats.nix
new file mode 100644
index 0000000000000..bc63789633a23
--- /dev/null
+++ b/pkgs/shells/nushell/plugins/formats.nix
@@ -0,0 +1,29 @@
+{ stdenv
+, lib
+, rustPlatform
+, nushell
+, pkg-config
+, IOKit
+, Foundation
+}:
+
+let
+  pname = "nushell_plugin_formats";
+in
+rustPlatform.buildRustPackage {
+  inherit pname;
+  version = "0.84.0";
+  src = nushell.src;
+  cargoHash = "sha256-pwOdSJHd9njR0lr4n2EzCcqRonh0cbBHGZgAJ1l8FEk=";
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [ IOKit Foundation ];
+  cargoBuildFlags = [ "--package nu_plugin_formats" ];
+  doCheck = false;
+  meta = with lib; {
+    description = "A formats plugin for Nushell";
+    homepage = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_formats";
+    license = licenses.mpl20;
+    maintainers = with maintainers; [ viraptor ];
+    platforms = with platforms; all;
+  };
+}