nixpkgs/pkgs/by-name/zb/zbus-xmlgen/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
791 B
Nix
Raw Normal View History

2023-07-28 09:28:15 +00:00
{ lib, rustPlatform, fetchCrate, makeBinaryWrapper, rustfmt }:
rustPlatform.buildRustPackage rec {
pname = "zbus_xmlgen";
2024-04-01 04:27:23 +00:00
version = "4.1.0";
2023-07-28 09:28:15 +00:00
src = fetchCrate {
inherit pname version;
2024-04-01 04:27:23 +00:00
hash = "sha256-71HxHfUTRmm4BpBz1lGbcvOpbwNQ/wCa5EKCSM1YEtQ=";
2023-07-28 09:28:15 +00:00
};
2024-04-01 04:27:23 +00:00
cargoHash = "sha256-ADS68qTYO/aDwg4MS4v8t25i9vNx8Je37O7icR3tID8=";
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;
};
}