1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

Merge pull request #274821 from alyssais/zbus-xmlgen

zbus-xmlgen: init at 3.1.1
This commit is contained in:
Pascal Bach 2023-12-17 13:29:27 +01:00 committed by GitHub
commit e33bfdfbfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,28 @@
{ lib, rustPlatform, fetchCrate, makeBinaryWrapper, rustfmt }:
rustPlatform.buildRustPackage rec {
pname = "zbus_xmlgen";
version = "3.1.1";
src = fetchCrate {
inherit pname version;
hash = "sha256-vaefyfasOLFFYWPjSJFgjIFkvnRiJVe/GLYUQxUYlt0=";
};
cargoHash = "sha256-WXJ49X4B2aNy1zPbTllIzRhZJvF+RwfQ0Hhm/D+LQfk=";
nativeBuildInputs = [ makeBinaryWrapper ];
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;
};
}