|
|
|
@ -10,6 +10,8 @@ |
|
|
|
|
, libiconv |
|
|
|
|
, AppKit |
|
|
|
|
, Security |
|
|
|
|
, nghttp2 |
|
|
|
|
, libgit2 |
|
|
|
|
, withStableFeatures ? true |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
@ -32,7 +34,7 @@ rustPlatform.buildRustPackage rec { |
|
|
|
|
buildInputs = [ openssl ] |
|
|
|
|
++ lib.optionals stdenv.isDarwin [ zlib libiconv Security ] |
|
|
|
|
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ xorg.libX11 ] |
|
|
|
|
++ lib.optionals (withStableFeatures && stdenv.isDarwin) [ AppKit ]; |
|
|
|
|
++ lib.optionals (withStableFeatures && stdenv.isDarwin) [ AppKit nghttp2 libgit2 ]; |
|
|
|
|
|
|
|
|
|
cargoBuildFlags = lib.optional withStableFeatures "--features stable"; |
|
|
|
|
|
|
|
|
|