at master 40 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 rustPlatform, 5 pkg-config, 6 nix-update-script, 7 fetchFromGitHub, 8 dbus, 9}: 10 11rustPlatform.buildRustPackage (finalAttrs: { 12 pname = "nu_plugin_dbus"; 13 version = "0.14.0"; 14 15 src = fetchFromGitHub { 16 owner = "devyn"; 17 repo = "nu_plugin_dbus"; 18 tag = finalAttrs.version; 19 hash = "sha256-Ga+1zFwS/v+3iKVEz7TFmJjyBW/gq6leHeyH2vjawto="; 20 }; 21 22 cargoHash = "sha256-7pD5LA1ytO7VqFnHwgf7vW9eS3olnZBgdsj+rmcHkbU="; 23 24 nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; 25 buildInputs = [ dbus ]; 26 27 passthru.updateScript = nix-update-script { }; 28 29 meta = { 30 description = "Nushell plugin for communicating with D-Bus"; 31 mainProgram = "nu_plugin_dbus"; 32 homepage = "https://github.com/devyn/nu_plugin_dbus"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ aftix ]; 35 platforms = lib.platforms.linux; 36 # "Plugin `dbus` is compiled for nushell version 0.101.0, which is not 37 # compatible with version 0.105.1" 38 broken = true; 39 }; 40})