3
0
Fork 0
forked from mirrors/nixpkgs

rust-bindgen: fix meta

This commit is contained in:
Guillaume Girol 2022-02-03 12:00:00 +00:00
parent 653d5a265b
commit d1d0d1184e
2 changed files with 7 additions and 5 deletions

View file

@ -7,6 +7,13 @@ let
inherit bash;
unwrapped = rust-bindgen-unwrapped;
libclang = clang.cc.lib;
meta = rust-bindgen-unwrapped.meta // {
longDescription = rust-bindgen-unwrapped.meta.longDescription + ''
This version of bindgen is wrapped with the required compiler flags
required to find the c and c++ standard libary, as well as the libraries
specified in the buildInputs of your derivation.
'';
};
passthru.tests = {
simple-c = runCommandCC "simple-c-bindgen-tests" { } ''
echo '#include <stdlib.h>' > a.c

View file

@ -54,11 +54,6 @@ rustPlatform.buildRustPackage rec {
longDescription = ''
Bindgen takes a c or c++ header file and turns them into
rust ffi declarations.
As with most compiler related software, this will only work
inside a nix-shell with the required libraries as buildInputs.
This version of bindgen is wrapped with the required compiler flags
required to find the c and c++ standard libary of the input clang
derivation.
'';
homepage = "https://github.com/rust-lang/rust-bindgen";
license = with licenses; [ bsd3 ];