From 884967c7a88e000ff2b11252eaa7434b85bf5cef Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Mon, 17 Feb 2020 01:55:17 +0100 Subject: [PATCH] rust-cbindgen_0_1_13: init at 0.1.13 --- .../tools/rust/cbindgen/0_1_13.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 ++++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/tools/rust/cbindgen/0_1_13.nix diff --git a/pkgs/development/tools/rust/cbindgen/0_1_13.nix b/pkgs/development/tools/rust/cbindgen/0_1_13.nix new file mode 100644 index 000000000000..79eed5fddd03 --- /dev/null +++ b/pkgs/development/tools/rust/cbindgen/0_1_13.nix @@ -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 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c92035da75c0..b160cf346057 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; };