ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
29 lines
835 B
Nix
29 lines
835 B
Nix
{ lib, fetchFromGitHub, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "gir";
|
|
version = "unstable-2021-11-21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gtk-rs";
|
|
repo = "gir";
|
|
rev = "a69abbe5ee1a745e554cac9433c65d2ac26a7688";
|
|
sha256 = "16ygy1bcbcj69x6ss72g9n62qlsd1bacr5hz91f8whw6qm9am46m";
|
|
};
|
|
|
|
cargoSha256 = "14srs2369yryqpkklmfp64fyqxrhf91b2bjy0068nx2myr25m624";
|
|
|
|
postPatch = ''
|
|
rm build.rs
|
|
sed -i '/build = "build\.rs"/d' Cargo.toml
|
|
echo "pub const VERSION: &str = \"$version\";" > src/gir_version.rs
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool to generate rust bindings and user API for glib-based libraries";
|
|
homepage = "https://github.com/gtk-rs/gir/";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ ekleog ];
|
|
mainProgram = "gir";
|
|
};
|
|
}
|