Skip to content

Commit

Permalink
inkscape: fix cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst committed Jan 3, 2025
1 parent f28864e commit 731516c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/applications/graphics/inkscape/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ stdenv.mkDerivation (finalAttrs: {
# double-conversion is a dependency of 2geom
substituteInPlace CMakeScripts/DefineDependsandFlags.cmake \
--replace-fail 'find_package(DoubleConversion REQUIRED)' ""
# use native Python when cross-compiling
shopt -s globstar
for f in **/CMakeLists.txt; do
substituteInPlace $f \
--replace-quiet "COMMAND python3" "COMMAND ${lib.getExe python3Env.pythonOnBuildForHost}"
done
shopt -u globstar
'';

nativeBuildInputs = [
Expand Down

0 comments on commit 731516c

Please sign in to comment.