3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/rust/cbindgen/default.nix

25 lines
693 B
Nix
Raw Normal View History

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