From 6af4a8e6d72660344485e0300d8ef4b360fcea1b Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Wed, 19 Sep 2018 19:30:09 +0200 Subject: [PATCH] nethack: remove build-time dependency on qt Unless qtMode is enabled :) --- pkgs/games/nethack/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/games/nethack/default.nix b/pkgs/games/nethack/default.nix index 2a39e3499ed..be522b2bacf 100644 --- a/pkgs/games/nethack/default.nix +++ b/pkgs/games/nethack/default.nix @@ -64,12 +64,14 @@ in stdenv.mkDerivation rec { -e 's,^CFLAGS=-g,CFLAGS=,' \ -i sys/unix/hints/macosx10.10 sed -e '/define CHDIR/d' -i include/config.h + ${lib.optionalString qtMode '' sed \ -e 's,^QTDIR *=.*,QTDIR=${qt5.qtbase.dev},' \ -e 's,CFLAGS.*QtGui.*,CFLAGS += `pkg-config Qt5Gui --cflags`,' \ -e 's,CFLAGS+=-DCOMPRESS.*,CFLAGS+=-DCOMPRESS=\\"${gzip}/bin/gzip\\" \\\ -DCOMPRESS_EXTENSION=\\".gz\\",' \ -i sys/unix/hints/linux-qt4 + ''} ''; configurePhase = ''