nixpkgs/pkgs/development/tools/gir/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
930 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform }:
2019-10-20 19:57:53 +00:00
rustPlatform.buildRustPackage rec {
pname = "gir";
version = "unstable-2021-11-21";
2019-10-20 19:57:53 +00:00
src = fetchFromGitHub {
owner = "gtk-rs";
repo = "gir";
rev = "a69abbe5ee1a745e554cac9433c65d2ac26a7688";
sha256 = "16ygy1bcbcj69x6ss72g9n62qlsd1bacr5hz91f8whw6qm9am46m";
2019-10-20 19:57:53 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"rustdoc-stripper-0.1.18" = "sha256-eQxAS76kV01whXK21PN5U+nkpvpn6r4VOoe9/pkuAQY=";
};
};
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 19:57:53 +00:00
meta = with lib; {
2019-10-20 19:57:53 +00:00
description = "Tool to generate rust bindings and user API for glib-based libraries";
homepage = "https://github.com/gtk-rs/gir/";
2019-10-20 19:57:53 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ ekleog ];
2021-10-08 19:13:29 +00:00
mainProgram = "gir";
2019-10-20 19:57:53 +00:00
};
}