torque: fix build w/gcc7

This commit is contained in:
xeji 2018-03-11 19:00:58 +01:00
parent 8332b7aef9
commit db2b306747

View File

@ -16,6 +16,9 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# added to fix build with gcc7
NIX_CFLAGS_COMPILE = [ "-fpermissive" ];
preConfigure = ''
substituteInPlace ./configure \
--replace '/usr/bin/file' '${file}/bin/file'