cmigemo: fix cross

This commit is contained in:
Alyssa Ross 2021-11-12 15:01:48 +00:00
parent 640e83f821
commit 023f0060a6
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

@ -1,4 +1,7 @@
{ lib, stdenv, fetchFromGitHub, fetchurl, gzip, libiconv, nkf, perl, skk-dicts, which }:
{ lib, stdenv, fetchFromGitHub, fetchurl, buildPackages
, gzip, libiconv, nkf, perl, which
, skk-dicts
}:
stdenv.mkDerivation {
pname = "cmigemo";
@ -21,7 +24,11 @@ stdenv.mkDerivation {
makeFlags = [ "INSTALL=install" ];
buildPhase = if stdenv.isDarwin then "make osx-all" else "make gcc-all";
preBuild = ''
makeFlagsArray+=(FILTER_UTF8="${lib.getBin buildPackages.stdenv.cc.libc}/bin/iconv -t utf-8 -f cp932")
'';
buildFlags = [ (if stdenv.isDarwin then "osx-all" else "gcc-all") ];
installTargets = [ (if stdenv.isDarwin then "osx-install" else "gcc-install") ];