gnuplot_qt: fix on darwin

This commit is contained in:
Dmitry Kalinkin 2020-03-17 19:30:23 -04:00
parent 4a672de9e6
commit c0f2b7e289
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -48,12 +48,16 @@ in
(if aquaterm then "--with-aquaterm" else "--without-aquaterm")
];
CXXFLAGS = lib.optionalString (stdenv.isDarwin && withQt) "-std=c++11";
postInstall = lib.optionalString withX ''
wrapProgram $out/bin/gnuplot \
--prefix PATH : '${gnused}/bin' \
--prefix PATH : '${coreutils}/bin' \
--prefix PATH : '${fontconfig.bin}/bin' \
--run '. ${./set-gdfontpath-from-fontconfig.sh}'
'' + lib.optionalString (stdenv.isDarwin && withQt) ''
wrapQtApp $out/bin/gnuplot
'';
enableParallelBuilding = true;