rust-cbindgen_0_1_13: init at 0.1.13

This commit is contained in:
Andreas Rammhold
2020-02-17 01:55:17 +01:00
parent d06ec64dc2
commit 884967c7a8
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "rust-cbindgen";
version = "0.13.1";
src = fetchFromGitHub {
owner = "eqrion";
repo = "cbindgen";
rev = "v${version}";
sha256 = "1x21g66gri6z9bnnfn7zmnf2lwdf5ing76pcmw0ilx4nzpvfhkg0";
};
cargoSha256 = "13fb8cdg6r0g5jb3vaznvv5aaywrnsl2yp00h4k8028vl8jwwr79";
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
checkFlags = [
# https://github.com/eqrion/cbindgen/issues/338
"--skip test_expand"
];
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 andir ];
};
}

View File

@@ -8386,6 +8386,12 @@ in
rust-cbindgen = callPackage ../development/tools/rust/cbindgen {
inherit (darwin.apple_sdk.frameworks) Security;
};
rust-cbindgen_0_1_13 = callPackage ../development/tools/rust/cbindgen/0_1_13.nix {
inherit (darwin.apple_sdk.frameworks) Security;
rustPlatform = rustPlatform_1_41;
};
rustup = callPackage ../development/tools/rust/rustup {
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
};