2023-07-28 09:28:15 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, makeBinaryWrapper, rustfmt }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "zbus_xmlgen";
|
2024-02-19 11:22:21 +00:00
|
|
|
version = "4.0.1";
|
2023-07-28 09:28:15 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-02-19 11:22:21 +00:00
|
|
|
hash = "sha256-GkNxlfwLIBfAAcwQnwJHjcviB8tiNVNDZNDib1FQcvs=";
|
2023-07-28 09:28:15 +00:00
|
|
|
};
|
|
|
|
|
2024-02-19 11:22:21 +00:00
|
|
|
cargoHash = "sha256-dKoxLEdLZ8B8kTJj3tHcFJzY/Rv3NvwmZBAmHyNhOg8=";
|
2023-07-28 09:28:15 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
2024-02-19 11:22:21 +00:00
|
|
|
nativeCheckInputs = [ rustfmt ];
|
2023-07-28 09:28:15 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/zbus-xmlgen \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ rustfmt ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://crates.io/crates/zbus_xmlgen";
|
|
|
|
description = "D-Bus XML interface Rust code generator";
|
|
|
|
mainProgram = "zbus-xmlgen";
|
|
|
|
maintainers = with maintainers; [ qyliss ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|