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}";
|
2019-02-28 20:42:04 +01:00
|
|
|
version = "0.8.0";
|
2018-05-22 15:20:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eqrion";
|
|
|
|
repo = "cbindgen";
|
|
|
|
rev = "v${version}";
|
2019-02-28 20:42:04 +01:00
|
|
|
sha256 = "07cizbhr02x3rh07xhs10hzzs3lmmpf61g08sa62b98cgadvs9fq";
|
2018-05-22 15:20:53 +02:00
|
|
|
};
|
|
|
|
|
2019-02-28 20:42:04 +01:00
|
|
|
cargoSha256 = "00j5nm491zil6kpjns31qyd6z7iqd77b5qp4h7149s70qjwfq2cb";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|