Merge pull request #230734 from Mindavi/gnuplot/cross

gnuplot: fix cross-compilation by disabling docs and demos
This commit is contained in:
Rick van Schijndel 2023-05-21 20:36:33 +02:00 committed by GitHub
commit c630a4f842
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,6 +66,12 @@ in
--run '. ${./set-gdfontpath-from-fontconfig.sh}'
'';
# When cross-compiling, don't build docs and demos.
# Inspiration taken from https://sourceforge.net/p/gnuplot/gnuplot-main/merge-requests/10/
makeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
"-C src"
];
enableParallelBuilding = true;
meta = with lib; {