molden: unbreak build, make compatible with gcc-10

This commit is contained in:
Markus Kowalewski 2022-05-10 17:01:35 +02:00
parent 74c9d7985b
commit 5fd7f4ef82
No known key found for this signature in database
GPG Key ID: 502A248E3FB4FF48

View File

@ -19,7 +19,11 @@ stdenv.mkDerivation rec {
--replace '-I/usr/X11R6/include' "" \
--replace '/usr/local/' $out/ \
--replace 'sudo' "" \
--replace '-C surf depend' '-C surf'
--replace '-C surf depend' '-C surf' \
--replace 'FFLAGS =' 'FFLAGS = -fallow-argument-mismatch'
substituteInPlace ambfor/makefile --replace 'FFLAGS =' 'FFLAGS = -fallow-argument-mismatch'
sed -in '/^# DO NOT DELETE THIS LINE/q;' surf/Makefile
'';