python3Packages.wasmer: fix Darwin build

This commit is contained in:
Jelle Besseling 2021-06-12 14:35:52 +02:00
parent 1fe827462c
commit d54cf8100b
No known key found for this signature in database
GPG key ID: 9712452E8BE3372E

View file

@ -1,7 +1,9 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, buildPythonPackage
, libiconv
}:
let
pname = "wasmer";
@ -26,6 +28,8 @@ in buildPythonPackage rec {
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
buildAndTestSubdir = "packages/api";
doCheck = false;