diff options
author | Daniel Wagenknecht <dwagenk@mailbox.org> | 2021-11-07 22:08:13 +0100 |
---|---|---|
committer | Daniel Wagenknecht <dwagenk@mailbox.org> | 2021-12-06 07:34:44 +0100 |
commit | 6e170aa758365dd0414607339a5e9d3371e60ad9 (patch) | |
tree | 21b04763741e1120704b2689dab9e32fae955299 /pkgs/applications/video/kodi | |
parent | a230ca83f202f6c957147fb24775a48e5c297c02 (diff) | |
download | nixlib-6e170aa758365dd0414607339a5e9d3371e60ad9.tar nixlib-6e170aa758365dd0414607339a5e9d3371e60ad9.tar.gz nixlib-6e170aa758365dd0414607339a5e9d3371e60ad9.tar.bz2 nixlib-6e170aa758365dd0414607339a5e9d3371e60ad9.tar.lz nixlib-6e170aa758365dd0414607339a5e9d3371e60ad9.tar.xz nixlib-6e170aa758365dd0414607339a5e9d3371e60ad9.tar.zst nixlib-6e170aa758365dd0414607339a5e9d3371e60ad9.zip |
kodi: fix cross build
Diffstat (limited to 'pkgs/applications/video/kodi')
-rw-r--r-- | pkgs/applications/video/kodi/unwrapped.nix | 4 | ||||
-rw-r--r-- | pkgs/applications/video/kodi/wrapper.nix | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/video/kodi/unwrapped.nix b/pkgs/applications/video/kodi/unwrapped.nix index 5fa652de0c7e..dc5e41aeac5b 100644 --- a/pkgs/applications/video/kodi/unwrapped.nix +++ b/pkgs/applications/video/kodi/unwrapped.nix @@ -198,10 +198,10 @@ in stdenv.mkDerivation { '' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' # Need these tools on the build system when cross compiling, # hacky, but have found no other way. - CXX=${stdenv.cc.targetPrefix}c++ LD=ld make -C tools/depends/native/JsonSchemaBuilder + CXX=$CXX_FOR_BUILD LD=ld make -C tools/depends/native/JsonSchemaBuilder cmakeFlags+=" -DWITH_JSONSCHEMABUILDER=$PWD/tools/depends/native/JsonSchemaBuilder/bin" - CXX=${stdenv.cc.targetPrefix}c++ LD=ld make EXTRA_CONFIGURE= -C tools/depends/native/TexturePacker + CXX=$CXX_FOR_BUILD LD=ld make EXTRA_CONFIGURE= -C tools/depends/native/TexturePacker cmakeFlags+=" -DWITH_TEXTUREPACKER=$PWD/tools/depends/native/TexturePacker/bin" ''; diff --git a/pkgs/applications/video/kodi/wrapper.nix b/pkgs/applications/video/kodi/wrapper.nix index 7377e638676e..52b7679a325e 100644 --- a/pkgs/applications/video/kodi/wrapper.nix +++ b/pkgs/applications/video/kodi/wrapper.nix @@ -22,7 +22,7 @@ buildEnv { paths = [ kodi ] ++ addons; pathsToLink = [ "/share" ]; - buildInputs = [ makeWrapper ]; + nativeBuildInputs = [ makeWrapper ]; postBuild = '' mkdir $out/bin |