Something went wrong. Try again.
Nushell plugin for interacting with D-Bus
Something went wrong. Try again.
nu_plugin_dbus flake.nix
1.5 kB · 61 lines
Nix
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ description = "Nushell Plugin DBUS";
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flakelight.url = "github:nix-community/flakelight"; flakelight.inputs.nixpkgs.follows = "nixpkgs"; crane.url = "github:ipetkov/crane"; };
outputs = inputs @ { self, nixpkgs, flakelight, crane, }: flakelight ./. { inherit inputs; pname = "nu_plugin_dbus"; package = { rustPlatform, dbus, nushell, pkg-config, fetchFromGitHub, lib, pkgs, }: let craneLib = crane.mkLib pkgs; src = ./.; commonArgs = { inherit src; strictDeps = true; nativeBuildInputs = [ pkg-config ]; buildInputs = [ dbus ]; }; cargoArtifacts = craneLib.buildDepsOnly commonArgs; nu_plugin_dbus = craneLib.buildPackage ( commonArgs // { inherit cargoArtifacts;
meta = with lib; { description = "A nushell plugin for interacting with dbus"; license = licenses.mit; mainProgram = "nu_plugin_dbus"; homepage = "https://github.com/devyn/nu_plugin_dbus"; }; } ); nu_version = "0.116.1"; in if nushell.version == nu_version then nu_plugin_dbus else abort "Nushell Version mismatch\nPlugin: ${nu_version}\tnixpkgs: ${nushell.version}"; };}