mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
25 lines
699 B
Nix
25 lines
699 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "rust-cbindgen-${version}";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eqrion";
|
|
repo = "cbindgen";
|
|
rev = "v${version}";
|
|
sha256 = "07cizbhr02x3rh07xhs10hzzs3lmmpf61g08sa62b98cgadvs9fq";
|
|
};
|
|
|
|
cargoSha256 = "00j5nm491zil6kpjns31qyd6z7iqd77b5qp4h7149s70qjwfq2cb";
|
|
|
|
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 ];
|
|
};
|
|
}
|