Nushell plugin for interacting with D-Bus
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use crane

Ben C 30249bd6 290130f6

+45 -26
+16
flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "crane": { 4 + "locked": { 5 + "lastModified": 1762538466, 6 + "narHash": "sha256-8zrIPl6J+wLm9MH5ksHcW7BUHo7jSNOu0/hA0ohOOaM=", 7 + "owner": "ipetkov", 8 + "repo": "crane", 9 + "rev": "0cea393fffb39575c46b7a0318386467272182fe", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "ipetkov", 14 + "repo": "crane", 15 + "type": "github" 16 + } 17 + }, 3 18 "flakelight": { 4 19 "inputs": { 5 20 "nixpkgs": [ ··· 38 53 }, 39 54 "root": { 40 55 "inputs": { 56 + "crane": "crane", 41 57 "flakelight": "flakelight", 42 58 "nixpkgs": "nixpkgs" 43 59 }
+29 -26
flake.nix
··· 5 5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 6 flakelight.url = "github:nix-community/flakelight"; 7 7 flakelight.inputs.nixpkgs.follows = "nixpkgs"; 8 + crane.url = "github:ipetkov/crane"; 8 9 }; 9 10 10 11 outputs = 11 - inputs @ { self 12 + inputs@{ self 12 13 , nixpkgs 13 14 , flakelight 15 + , crane 14 16 , 15 17 }: 16 18 flakelight ./. { ··· 23 25 , pkg-config 24 26 , fetchFromGitHub 25 27 , lib 28 + , pkgs 26 29 , 27 30 }: 28 - rustPlatform.buildRustPackage rec { 29 - pname = "nu_plugin_dbus"; 30 - version = 31 - if nushell.version == nu_version 32 - then "0.20.0" 33 - else abort "Nushell Version mismatch\nPlugin: ${nu_version}\tnixpkgs: ${nushell.version}"; 31 + let 32 + craneLib = crane.mkLib pkgs; 33 + src = ./.; 34 + commonArgs = { 35 + inherit src; 36 + strictDeps = true; 37 + nativeBuildInputs = [ 38 + pkg-config 39 + ]; 40 + buildInputs = [ 41 + dbus 42 + ]; 43 + }; 44 + cargoArtifacts = craneLib.buildDepsOnly commonArgs; 45 + nu_plugin_dbus = craneLib.buildPackage ( 46 + commonArgs 47 + // { 48 + inherit cargoArtifacts; 49 + } 50 + ); 34 51 nu_version = "0.108.0"; 35 - 36 - src = ./.; 37 - 38 - cargoLock.lockFile = ./Cargo.lock; 52 + in 53 + if nushell.version == nu_version then 54 + nu_plugin_dbus 55 + else 56 + abort "Nushell Version mismatch\nPlugin: ${nu_version}\tnixpkgs: ${nushell.version}"; 39 57 40 - nativeBuildInputs = [ 41 - pkg-config 42 - ]; 43 - 44 - buildInputs = [ 45 - dbus 46 - ]; 47 - 48 - meta = with lib; { 49 - description = "A nushell plugin for interacting with dbus"; 50 - license = licenses.mit; 51 - mainProgram = "nu_plugin_dbus"; 52 - homepage = "https://github.com/devyn/nu_plugin_dbus"; 53 - }; 54 - }; 55 58 }; 56 59 }