Skip to content

Commit

Permalink
nushellPlugins.dbus: init at 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkKronicle committed Aug 23, 2024
1 parent 934a768 commit a32dade
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
38 changes: 38 additions & 0 deletions pkgs/shells/nushell/plugins/dbus.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
gitUpdater,
pkg-config,
dbus,
}:

rustPlatform.buildRustPackage rec {
pname = "nu-plugin-dbus";
version = "0.9.0";

src = fetchFromGitHub {
owner = "devyn";
repo = "nu_plugin_dbus";
rev = version;
hash = "sha256-Bb55IO/qkQRVkPPyS0iYxYUw6qxhWMuaLj9oxK+I1fk=";
};

passthru.updateScript = gitUpdater { };

cargoHash = "sha256-XmERSV2ihl2eS3PcT9hrP0PpTKiRic0Yz2UQyN+fqU8=";

nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];

buildInputs = [ dbus ];

meta = with lib; {
description = "Nushell plugin for interacting with D-Bus";
homepage = "https://github.com/devyn/nu_plugin_dbus";
license = licenses.mit;
maintainers = with lib.maintainers; [ darkkronicle ];
mainProgram = "nu_plugin_dbus";
platforms = with platforms; all;
};
}
14 changes: 11 additions & 3 deletions pkgs/shells/nushell/plugins/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{ lib, newScope, IOKit, CoreFoundation, Foundation, Security }:

lib.makeScope newScope (self: with self; {
{
lib,
callPackage,
newScope,
IOKit,
CoreFoundation,
Foundation,
Security,
}:
lib.makeScope newScope (self: {
gstat = callPackage ./gstat.nix { inherit Security; };
formats = callPackage ./formats.nix { inherit IOKit Foundation; };
polars = callPackage ./polars.nix { inherit IOKit Foundation; };
query = callPackage ./query.nix { inherit IOKit CoreFoundation; };
regex = throw "`nu_plugin_regex` is no longer compatible with the current Nushell release.";
net = callPackage ./net.nix { inherit IOKit CoreFoundation; };
dbus = callPackage ./dbus.nix { };
})

0 comments on commit a32dade

Please sign in to comment.