package.nix (806B)
1 { 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 openssl, 6 paho-mqtt-c, 7 pkg-config, 8 }: 9 10 rustPlatform.buildRustPackage (finalAttrs: { 11 pname = "systemd2mqtt"; 12 version = "0-unstable-2024-05-01"; 13 14 src = fetchFromGitHub { 15 owner = "arcnmx"; 16 repo = "systemd2mqtt"; 17 rev = "7cd09aa52685fa1a3d18f36b039754a149b4d941"; 18 hash = "sha256-An97O4aa2yw80jYY9eucFnlBuVSYU8JAszpWjfWgju8="; 19 }; 20 21 cargoHash = "sha256-Vl8ccyB35KeCZjOA5IUw/zYhYJGUuwVCJFtqOkZmvVo="; 22 23 nativeBuildInputs = [ 24 pkg-config 25 ]; 26 27 buildInputs = [ 28 openssl 29 paho-mqtt-c 30 ]; 31 32 meta = { 33 description = "Expose systemd services to MQTT"; 34 homepage = "https://github.com/arcnmx/systemd2mqtt"; 35 license = lib.licenses.mit; 36 maintainers = [ lib.maintainers.sikmir ]; 37 mainProgram = "systemd2mqtt"; 38 }; 39 })
