rust-bindgen: 0.23.0 -> 0.24.0
Fixes errors arising from unset LIBCLANG_PATH
This commit is contained in:
parent
244b05e5e5
commit
bbdfa06eb5
|
@ -1,25 +1,30 @@
|
||||||
{ stdenv, fetchFromGitHub, rustPlatform, llvmPackages }:
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper, llvmPackages }:
|
||||||
|
|
||||||
# Future work: Automatically communicate NIX_CFLAGS_COMPILE to bindgen's tests and the bindgen executable itself.
|
# Future work: Automatically communicate NIX_CFLAGS_COMPILE to bindgen's tests and the bindgen executable itself.
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
name = "rust-bindgen-${version}";
|
name = "rust-bindgen-${version}";
|
||||||
version = "0.23.0";
|
version = "0.24.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "servo";
|
owner = "servo";
|
||||||
repo = "rust-bindgen";
|
repo = "rust-bindgen";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1cr7wgb13pavjpv2glq02wf5sqigcl1k0qgf3cqi9c5mjca2cg5y";
|
sha256 = "1nzva8g5nj7m2w8vax86p4rd02ci8793nhnm7sf76ajr4hfnx323";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ llvmPackages.clang-unwrapped ];
|
buildInputs = [ llvmPackages.clang-unwrapped ];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
export LIBCLANG_PATH="${llvmPackages.clang-unwrapped}/lib"
|
export LIBCLANG_PATH="${llvmPackages.clang-unwrapped}/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
depsSha256 = "1qrnd9a73vxr7572byjjlhwbax3z4slc7qmwjx3aiwjix3r250dh";
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/bindgen --set LIBCLANG_PATH "${llvmPackages.clang-unwrapped}/lib"
|
||||||
|
'';
|
||||||
|
|
||||||
|
depsSha256 = "1l8c48y67azzwmv4hzghia1c53b5dw6qiv22cgv8zbyrg20aj8as";
|
||||||
|
|
||||||
doCheck = false; # A test fails because it can't find standard headers in NixOS
|
doCheck = false; # A test fails because it can't find standard headers in NixOS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue