-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
934a768
commit a32dade
Showing
2 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { }; | ||
}) |