rust-bindgen: 0.19.1 -> 0.22.1
This commit is contained in:
parent
09e814c681
commit
6661730f92
@ -1,18 +1,16 @@
|
|||||||
{ stdenv, fetchFromGitHub, rustPlatform, llvmPackages }:
|
{ stdenv, fetchFromGitHub, rustPlatform, llvmPackages }:
|
||||||
|
|
||||||
with rustPlatform;
|
|
||||||
|
|
||||||
# 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.
|
||||||
|
|
||||||
buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
name = "rust-bindgen-${version}";
|
name = "rust-bindgen-${version}";
|
||||||
version = "0.19.1";
|
version = "0.22.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Yamakaky";
|
owner = "servo";
|
||||||
repo = "rust-bindgen";
|
repo = "rust-bindgen";
|
||||||
rev = "${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0pv1vcgp455hys8hb0yj4vrh2k01zysayswkasxq4hca8s2p7qj9";
|
sha256 = "10cavj6rrbdqi4ldfmhxy6xxp0q65pxiypdgq2ckz0c37g04qqqs";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ llvmPackages.clang-unwrapped ];
|
buildInputs = [ llvmPackages.clang-unwrapped ];
|
||||||
@ -21,13 +19,13 @@ buildRustPackage rec {
|
|||||||
export LIBCLANG_PATH="${llvmPackages.clang-unwrapped}/lib"
|
export LIBCLANG_PATH="${llvmPackages.clang-unwrapped}/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
depsSha256 = "0rlmdiqjg9ha9yzhcy33abvhrck6sphczc2gbab9zhfa95gxprv8";
|
depsSha256 = "1gvva6f64ndzsswv1a7c31wym12yp4cg1la4zjwlzkrx62kgyk8x";
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "C binding generator";
|
description = "C binding generator";
|
||||||
homepage = https://github.com/Yamakaky/rust-bindgen;
|
homepage = https://github.com/servo/rust-bindgen;
|
||||||
license = with licenses; [ bsd3 ];
|
license = with licenses; [ bsd3 ];
|
||||||
maintainers = [ maintainers.ralith ];
|
maintainers = [ maintainers.ralith ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user