9 rustPlatform.buildRustPackage rec {
13 src = fetchFromGitHub {
17 sha256 = "sha256-KQlbJvULdc94SM0sx6JtukZPpaX4Gojc6Qgr20V3/VI=";
21 lockFile = ./Cargo.lock;
25 cp ${./Cargo.lock} Cargo.lock
37 cargoTestFlags = [ "--workspace" ];
47 cp -r ./target/doc/* $doc
49 mkdir -p $dev/include/rust
50 install -D -m 0644 ./include/cxx.h $dev/include/rust
53 passthru.tests.version = testers.testVersion {
55 command = "cxxbridge --version";
59 description = "Safe FFI between Rust and C++";
60 mainProgram = "cxxbridge";
61 homepage = "https://github.com/dtolnay/cxx";
62 license = licenses.mit;
63 maintainers = with maintainers; [ centromere ];