gnuplot: fix cross-compilation by disabling docs and demos

Now we can cross-build rtl_433 completely!
This commit is contained in:
Rick van Schijndel 2023-05-08 19:09:57 +02:00
parent ee4a1a8b3f
commit e9d434cd03

View file

@ -68,6 +68,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; {