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