2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2019-10-20 21:57:53 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gir";
|
2021-11-30 22:41:01 +01:00
|
|
|
version = "unstable-2021-11-21";
|
2019-10-20 21:57:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gtk-rs";
|
|
|
|
repo = "gir";
|
2021-11-30 22:41:01 +01:00
|
|
|
rev = "a69abbe5ee1a745e554cac9433c65d2ac26a7688";
|
|
|
|
sha256 = "16ygy1bcbcj69x6ss72g9n62qlsd1bacr5hz91f8whw6qm9am46m";
|
2019-10-20 21:57:53 +02:00
|
|
|
};
|
|
|
|
|
2021-11-30 22:41:01 +01:00
|
|
|
cargoSha256 = "14srs2369yryqpkklmfp64fyqxrhf91b2bjy0068nx2myr25m624";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
rm build.rs
|
|
|
|
sed -i '/build = "build\.rs"/d' Cargo.toml
|
|
|
|
echo "pub const VERSION: &str = \"$version\";" > src/gir_version.rs
|
|
|
|
'';
|
2019-10-20 21:57:53 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-20 21:57:53 +02:00
|
|
|
description = "Tool to generate rust bindings and user API for glib-based libraries";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/gtk-rs/gir/";
|
2019-10-20 21:57:53 +02:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ ekleog ];
|
2021-10-08 21:13:29 +02:00
|
|
|
mainProgram = "gir";
|
2019-10-20 21:57:53 +02:00
|
|
|
};
|
|
|
|
}
|