mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 03:03:42 +00:00
9ca9bd1a81
Fix compilation under darwin and add the formats plugin to support ini, ical and others.
30 lines
765 B
Nix
30 lines
765 B
Nix
{ stdenv
|
|
, lib
|
|
, rustPlatform
|
|
, openssl
|
|
, nushell
|
|
, pkg-config
|
|
, Security
|
|
}:
|
|
|
|
let
|
|
pname = "nushell_plugin_gstat";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit pname;
|
|
version = "0.84.0";
|
|
src = nushell.src;
|
|
cargoHash = "sha256-RcwCYfIEV0+NbZ99uWaCOLqLap3wZ4qXIsc02fqkBSQ=";
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
|
cargoBuildFlags = [ "--package nu_plugin_gstat" ];
|
|
doCheck = false; # some tests fail
|
|
meta = with lib; {
|
|
description = "A git status plugin for Nushell";
|
|
homepage = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_gstat";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ mrkkrp ];
|
|
platforms = with platforms; all;
|
|
};
|
|
}
|