Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
812 B
Nix
37 lines
812 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
}:
|
|
|
|
let
|
|
version = "0.21.0";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "gir";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gtk-rs";
|
|
repo = "gir";
|
|
rev = version;
|
|
sha256 = "sha256-fjfTB621DwnCRXTsoGxISk+4XblMbjX5dzY+M8uDZ80=";
|
|
};
|
|
|
|
cargoHash = "sha256-wT09qXGx4+oJ9MhZqpG9jZ1yMYT/JJ2bJ6z1CT7wqUQ=";
|
|
|
|
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";
|
|
};
|
|
}
|