plotutils: fix parallel building

E.g. https://hydra.nixos.org/build/75429322:

     b_closepl.c:21:10: fatal error: xmi.h: No such file or directory
     make[2]: *** [Makefile:958: b_closepl.lo] Error 1
     make[2]: Leaving directory '/build/plotutils-2.6/libplot'
This commit is contained in:
Orivej Desh 2018-06-04 06:46:30 +00:00
parent 61f5b9d6c4
commit 07e1ae54a6

@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
buildInputs = [ libpng ];
patches = map fetchurl (import ./debian-patches.nix);
preBuild = ''
# Fix parallel building.
make -C libplot xmi.h
'';
configureFlags = "--enable-libplotter"; # required for pstoedit
hardeningDisable = [ "format" ];