2018-05-22 15:20:53 +02:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "rust-cbindgen-${version}";
|
2018-08-22 11:38:01 +03:00
|
|
|
version = "0.6.2";
|
2018-05-22 15:20:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eqrion";
|
|
|
|
repo = "cbindgen";
|
|
|
|
rev = "v${version}";
|
2018-08-22 11:38:01 +03:00
|
|
|
sha256 = "0hifmn9578cf1r5m4ajazg3rhld2ybd2v48xz04vfhappkarv4w2";
|
2018-05-22 15:20:53 +02:00
|
|
|
};
|
|
|
|
|
2018-07-28 23:33:16 +03:00
|
|
|
cargoSha256 = "0c3xpzff8jldqbn5a25yy6c2hlz5xy636ml6sj5d24wzcgwg5a2i";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|