nethack: add qt plugin wrapper
This commit is contained in:
parent
935332d648
commit
de24fd7525
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, lib, fetchurl, writeScript, coreutils, ncurses, gzip, flex, bison, less
|
{ stdenv, lib, fetchurl, writeScript, coreutils, ncurses, gzip, flex, bison
|
||||||
|
, less, makeWrapper
|
||||||
, x11Mode ? false, qtMode ? false, libXaw, libXext, mkfontdir, pkgconfig, qt5
|
, x11Mode ? false, qtMode ? false, libXaw, libXext, mkfontdir, pkgconfig, qt5
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -35,7 +36,7 @@ in stdenv.mkDerivation rec {
|
|||||||
++ lib.optionals x11Mode [ mkfontdir ]
|
++ lib.optionals x11Mode [ mkfontdir ]
|
||||||
++ lib.optionals qtMode [
|
++ lib.optionals qtMode [
|
||||||
pkgconfig mkfontdir qt5.qtbase.dev
|
pkgconfig mkfontdir qt5.qtbase.dev
|
||||||
qt5.qtmultimedia.dev
|
qt5.qtmultimedia.dev makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
@ -115,6 +116,11 @@ in stdenv.mkDerivation rec {
|
|||||||
${lib.optionalString qtMode "mv $out/bin/nethack $out/bin/nethack-qt"}
|
${lib.optionalString qtMode "mv $out/bin/nethack $out/bin/nethack-qt"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = lib.optionalString qtMode ''
|
||||||
|
wrapProgram $out/bin/nethack-qt \
|
||||||
|
--prefix QT_PLUGIN_PATH : "${qt5.qtbase}/${qt5.qtbase.qtPluginPrefix}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Rogue-like game";
|
description = "Rogue-like game";
|
||||||
homepage = http://nethack.org/;
|
homepage = http://nethack.org/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user