nethack: remove build-time dependency on qt

Unless qtMode is enabled :)
This commit is contained in:
Linus Heckemann 2018-09-19 19:30:09 +02:00
parent 218ce4de50
commit 6af4a8e6d7

View File

@ -64,12 +64,14 @@ in stdenv.mkDerivation rec {
-e 's,^CFLAGS=-g,CFLAGS=,' \ -e 's,^CFLAGS=-g,CFLAGS=,' \
-i sys/unix/hints/macosx10.10 -i sys/unix/hints/macosx10.10
sed -e '/define CHDIR/d' -i include/config.h sed -e '/define CHDIR/d' -i include/config.h
${lib.optionalString qtMode ''
sed \ sed \
-e 's,^QTDIR *=.*,QTDIR=${qt5.qtbase.dev},' \ -e 's,^QTDIR *=.*,QTDIR=${qt5.qtbase.dev},' \
-e 's,CFLAGS.*QtGui.*,CFLAGS += `pkg-config Qt5Gui --cflags`,' \ -e 's,CFLAGS.*QtGui.*,CFLAGS += `pkg-config Qt5Gui --cflags`,' \
-e 's,CFLAGS+=-DCOMPRESS.*,CFLAGS+=-DCOMPRESS=\\"${gzip}/bin/gzip\\" \\\ -e 's,CFLAGS+=-DCOMPRESS.*,CFLAGS+=-DCOMPRESS=\\"${gzip}/bin/gzip\\" \\\
-DCOMPRESS_EXTENSION=\\".gz\\",' \ -DCOMPRESS_EXTENSION=\\".gz\\",' \
-i sys/unix/hints/linux-qt4 -i sys/unix/hints/linux-qt4
''}
''; '';
configurePhase = '' configurePhase = ''