forked from mirrors/nixpkgs
523cccf073
this got broken in a6643de25d
cc @andir
25 lines
699 B
Nix
25 lines
699 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "rust-cbindgen-${version}";
|
|
version = "0.8.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eqrion";
|
|
repo = "cbindgen";
|
|
rev = "v${version}";
|
|
sha256 = "08zlnk1k1nddjciccfdcplxqngsnz6ml3zxm57mijabzybry8zz1";
|
|
};
|
|
|
|
cargoSha256 = "1nig4891p7ii4z4f4j4d4pxx39f501g7yrsygqbpkr1nrgjip547";
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
|
|
|
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 ];
|
|
};
|
|
}
|