mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
1eae7fb887
This reverts commit09dde57e93
. Apparently, the rust-cbindgen bump wasn't the cause for the firefox build error reported in https://github.com/NixOS/nixpkgs/pull/83247 (we could reproduce the build error even after09dde57e93
applied). For some reason it must have succeeded on hydra, as it's in the cache, tricking us in believing76458f89f4
broke it initially. So the build seems flaky of some sort - we haven't yet determined whether it's luck, compiling with the right CPUs or something else. :-/ There's still some investigation to be done (https://github.com/NixOS/nixpkgs/issues/84283), but no need to keep an ineffective revert around.
30 lines
792 B
Nix
30 lines
792 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rust-cbindgen";
|
|
version = "0.13.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eqrion";
|
|
repo = "cbindgen";
|
|
rev = "v${version}";
|
|
sha256 = "100ls8p8w6jwcjh3ligly5alg8fzp21aj7b1qbndn9fm0y1nmjam";
|
|
};
|
|
|
|
cargoSha256 = "0d9sz46yzh01dx973q10xzw4k7r7ylvg82s5pkp3zpwcin8smaiw";
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
|
|
|
checkFlags = [
|
|
# https://github.com/eqrion/cbindgen/issues/338
|
|
"--skip test_expand"
|
|
];
|
|
|
|
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 andir ];
|
|
};
|
|
}
|