Merge pull request from xfix/skytemple-rust-iconv

python3Packages.skytemple-rust: fix for Darwin
This commit is contained in:
Sandro 2021-07-22 16:20:04 +02:00 committed by GitHub
commit 9364572053
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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