diff options
author | Guillaume Girol <symphorien+git@xlumurb.eu> | 2022-02-03 12:00:00 +0000 |
---|---|---|
committer | Guillaume Girol <symphorien+git@xlumurb.eu> | 2022-02-03 12:00:00 +0000 |
commit | d1d0d1184e284e5f184837743d2afc572f6fc2c7 (patch) | |
tree | 23a6789fa860f6d58889b807e4ba2ca6d0ffca25 /pkgs/development/tools/rust | |
parent | 653d5a265b87918cfd575372d86a2d0e1ae72987 (diff) | |
download | nixpkgs-d1d0d1184e284e5f184837743d2afc572f6fc2c7.tar nixpkgs-d1d0d1184e284e5f184837743d2afc572f6fc2c7.tar.gz nixpkgs-d1d0d1184e284e5f184837743d2afc572f6fc2c7.tar.bz2 nixpkgs-d1d0d1184e284e5f184837743d2afc572f6fc2c7.tar.lz nixpkgs-d1d0d1184e284e5f184837743d2afc572f6fc2c7.tar.xz nixpkgs-d1d0d1184e284e5f184837743d2afc572f6fc2c7.tar.zst nixpkgs-d1d0d1184e284e5f184837743d2afc572f6fc2c7.zip |
rust-bindgen: fix meta
Diffstat (limited to 'pkgs/development/tools/rust')
-rw-r--r-- | pkgs/development/tools/rust/bindgen/default.nix | 7 | ||||
-rw-r--r-- | pkgs/development/tools/rust/bindgen/unwrapped.nix | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/tools/rust/bindgen/default.nix b/pkgs/development/tools/rust/bindgen/default.nix index 392f5333211..782996d9218 100644 --- a/pkgs/development/tools/rust/bindgen/default.nix +++ b/pkgs/development/tools/rust/bindgen/default.nix @@ -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 diff --git a/pkgs/development/tools/rust/bindgen/unwrapped.nix b/pkgs/development/tools/rust/bindgen/unwrapped.nix index 3438724525a..65ce8e20bc0 100644 --- a/pkgs/development/tools/rust/bindgen/unwrapped.nix +++ b/pkgs/development/tools/rust/bindgen/unwrapped.nix @@ -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 ]; |