1 { lib, fetchFromGitHub, rustPlatform }:
6 rustPlatform.buildRustPackage {
10 src = fetchFromGitHub {
14 sha256 = "sha256-WpTyT62bykq/uwzBFQXeJ1HxR1a2vKmtid8YAzk7J+Q=";
18 lockFile = ./Cargo.lock;
20 "rustdoc-stripper-0.1.18" = "sha256-b+RRXJDGULEvkIZDBzU/ZchVF63pX0S9hBupeP12CkU=";
26 sed -i '/build = "build\.rs"/d' Cargo.toml
27 echo "pub const VERSION: &str = \"$version\";" > src/gir_version.rs
31 description = "Tool to generate rust bindings and user API for glib-based libraries";
32 homepage = "https://github.com/gtk-rs/gir/";
33 license = with licenses; [ mit ];
34 maintainers = with maintainers; [ ekleog ];