summary refs log blame commit diff
path: root/pkgs/development/tools/gir/default.nix
blob: 856cd44e26c0a5da8ab6bfc69a7b6c584d7e054d (plain) (tree)
1
2
3
4
5
6
7
8
9
                                       


                                   
                                  



                         


                                                                    

    
                                                                       
 
                    
                                                                                         
                                                

                                               

    
{ lib, fetchFromGitHub, rustPlatform }:

rustPlatform.buildRustPackage rec {
  pname = "gir";
  version = "unstable-2021-05-05";

  src = fetchFromGitHub {
    owner = "gtk-rs";
    repo = "gir";
    rev = "c148542ce89b0bf7cbb9f5ef4179c96a45d022df";
    sha256 = "0vy366ipwnn0cpp14l1v5g3dpnsr3hd8mjp3333lp0946igfqsy5";
    leaveDotGit = true; # required for build.rs
  };

  cargoSha256 = "11as1v88zf0f7l2ngllg5zqycvd05nb4vrsyl1dlarjvbq7fhvv8";

  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 ];
  };
}