opencc: fix cross compilation

This commit is contained in:
Nick Cao 2024-04-26 22:03:27 -04:00
parent fe7822338a
commit 0ff2a895bb
No known key found for this signature in database

View File

@ -4,6 +4,7 @@
fetchFromGitHub,
cmake,
python3,
opencc,
}:
stdenv.mkDerivation rec {
@ -17,9 +18,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-N7nazA0xoQ2ewOGDiJg1vBBYMdF1/qiCfNjG5CFFbuk=";
};
nativeBuildInputs = [
nativeBuildInputs =
[
cmake
python3
]
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
opencc # opencc_dict
];
meta = with lib; {