### NOTE: This file is a copy of the one from Nixpkgs repository ### (taken 2018 October). It is used when the version of cbindgen in ### upstream nixpkgs is not up-to-date enough to compile Firefox. { stdenv, fetchFromGitHub, rustPlatform }: rustPlatform.buildRustPackage rec { name = "rust-cbindgen-${version}"; version = "0.6.7"; src = fetchFromGitHub { owner = "eqrion"; repo = "cbindgen"; rev = "v${version}"; sha256 = "0sgkgvkqrc6l46fvk6d9hsy0xrjpl2ix47f3cv5bi74dv8i4y2b4"; }; cargoSha256 = "137dqj1sp02dh0dz9psf8i8q57gmz3rfgmwk073k7x5zzkgvj21c"; meta = with stdenv.lib; { description = "A project for generating C bindings from Rust code"; homepage = https://github.com/eqrion/cbindgen; license = licenses.mpl20; maintainers = with maintainers; [ jtojnar ]; }; }