python3Packages.skytemple-rust: fix for Darwin

This commit is contained in:
Konrad Borowski 2021-07-18 14:52:58 +02:00
parent 64c4e4bcce
commit 5514844d05

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, rustPlatform, setuptools-rust }:
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, libiconv, rustPlatform, setuptools-rust }:
buildPythonPackage rec {
pname = "skytemple-rust";
@ -17,6 +17,7 @@ buildPythonPackage rec {
sha256 = "1ypcsf9gbq1bz29kfn7g4kg8741mxg1lfcbb14a0vfhjq4d6pnx9";
};
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
nativeBuildInputs = [ setuptools-rust ] ++ (with rustPlatform; [ cargoSetupHook rust.cargo rust.rustc ]);
doCheck = false; # there are no tests