nethack: only install dlb for text-mode

This commit is contained in:
Linus Heckemann 2018-09-20 20:01:53 +02:00
parent ec42304022
commit 6776bc7678

View File

@ -132,7 +132,8 @@ in stdenv.mkDerivation rec {
chmod +x $out/bin/nethack
${lib.optionalString x11Mode "mv $out/bin/nethack $out/bin/nethack-x11"}
${lib.optionalString qtMode "mv $out/bin/nethack $out/bin/nethack-qt"}
install -Dm 555 util/{makedefs,dgn_comp,lev_comp,dlb} -t $out/libexec/nethack/
install -Dm 555 util/{makedefs,dgn_comp,lev_comp} -t $out/libexec/nethack/
${lib.optionalString (!(x11Mode || qtMode)) "install -Dm 555 util/dlb -t $out/libexec/nethack/"}
'';
postFixup = lib.optionalString qtMode ''