Merge pull request #232393 from mrkkrp/init-nushell-plugin-gstat
This commit is contained in:
commit
347c91433a
2 changed files with 29 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
{ lib, newScope, IOKit, CoreFoundation }:
|
||||
|
||||
lib.makeScope newScope (self: with self; {
|
||||
gstat = callPackage ./gstat.nix { };
|
||||
query = callPackage ./query.nix { inherit IOKit CoreFoundation; };
|
||||
})
|
||||
|
|
28
pkgs/shells/nushell/plugins/gstat.nix
Normal file
28
pkgs/shells/nushell/plugins/gstat.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, rustPlatform
|
||||
, openssl
|
||||
, nushell
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "nushell_plugin_gstat";
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
inherit pname;
|
||||
version = nushell.version;
|
||||
src = nushell.src;
|
||||
cargoHash = "sha256-+RFCkM++6DgrwFjTr3JlCgh9FqDBUOQsOucbZAi+V/k=";
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ openssl ];
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue