Merge pull request #34514 from acowley/libqalculate-clang
libqalculate: fix build with clang
This commit is contained in:
commit
6d788e9063
@ -25,6 +25,9 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace libqalculate/Calculator.cc \
|
||||
--replace 'commandline = "gnuplot"' 'commandline = "${gnuplot}/bin/gnuplot"' \
|
||||
--replace '"gnuplot -"' '"${gnuplot}/bin/gnuplot -"'
|
||||
'' + stdenv.lib.optionalString stdenv.cc.isClang ''
|
||||
substituteInPlace src/qalc.cc \
|
||||
--replace 'printf(_("aborted"))' 'printf("%s", _("aborted"))'
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
|
Loading…
Reference in New Issue
Block a user