File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 mkPackage =
44 x :
55 {
6- lib ,
76 rustPlatform ,
8- stdenv ,
97 pkg-config ,
8+ openssl ,
109 } :
1110 let
1211 cargoToml = builtins . fromTOML ( builtins . readFile /${ root } /crates/${ x } /Cargo.toml ) ;
1514 pname = cargoToml . package . name ;
1615 version = cargoToml . package . version ;
1716
17+ strictDeps = true ;
18+
1819 src = root ;
1920 cargoLock . lockFile = root + /Cargo.lock ;
2021
2122 nativeBuildInputs = [ pkg-config ] ;
22- buildInputs = [ stdenv . cc . cc . lib ] ;
23+ buildInputs = [ openssl ] ;
2324
24- buildAndTestSubdir = "crates/${ x } " ;
25+ # Needed to get openssl-sys to use pkg-config.
26+ env . OPENSSL_NO_VENDOR = 1 ;
2527
26- postFixup = lib . optionalString ( ! stdenv . hostPlatform . isDarwin ) ''
27- patchelf --set-rpath "${ stdenv . cc . cc . lib } /lib" $out/bin/${ x }
28- '' ;
28+ buildAndTestSubdir = "crates/${ x } " ;
2929 } ;
3030in
3131( builtins . listToAttrs (
You can’t perform that action at this time.
0 commit comments