skytemple-rust: add Foundation library on darwin

This commit is contained in:
Theodore Ni 2022-05-04 23:59:34 -05:00
parent 98df69fed4
commit 57ce8ad61b
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,11 @@
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, libiconv, rustPlatform, setuptools-rust }:
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, libiconv
, Foundation
, rustPlatform
, setuptools-rust }:
buildPythonPackage rec {
pname = "skytemple-rust";
@ -17,7 +24,7 @@ buildPythonPackage rec {
sha256 = "sha256-lXPCxRbaqUC5EfyeBPtJDuGADYOA+DWMaOZRwXppP8E=";
};
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Foundation ];
nativeBuildInputs = [ setuptools-rust ] ++ (with rustPlatform; [ cargoSetupHook rust.cargo rust.rustc ]);
GETTEXT_SYSTEM = true;

View File

@ -9484,7 +9484,9 @@ in {
skytemple-icons = callPackage ../development/python-modules/skytemple-icons { };
skytemple-rust = callPackage ../development/python-modules/skytemple-rust { };
skytemple-rust = callPackage ../development/python-modules/skytemple-rust {
inherit (pkgs.darwin.apple_sdk.frameworks) Foundation;
};
skytemple-ssb-debugger = callPackage ../development/python-modules/skytemple-ssb-debugger { };