2018-10-27 19:21:15 +02:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2018-05-22 15:20:53 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "rust-cbindgen-${version}";
|
2018-11-14 14:30:24 +01:00
|
|
|
version = "0.6.7";
|
2018-05-22 15:20:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eqrion";
|
|
|
|
repo = "cbindgen";
|
|
|
|
rev = "v${version}";
|
2018-11-14 14:30:24 +01:00
|
|
|
sha256 = "0sgkgvkqrc6l46fvk6d9hsy0xrjpl2ix47f3cv5bi74dv8i4y2b4";
|
2018-05-22 15:20:53 +02:00
|
|
|
};
|
|
|
|
|
2018-11-14 14:30:24 +01:00
|
|
|
cargoSha256 = "137dqj1sp02dh0dz9psf8i8q57gmz3rfgmwk073k7x5zzkgvj21c";
|
2018-05-22 15:20:53 +02:00
|
|
|
|
2018-10-27 19:21:15 +02:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
|
|
|
|
2018-05-22 15:20:53 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|