xonotic: fix dependencies (#19173)
This commit is contained in:
parent
e4958d54b1
commit
4c39fe5d66
@ -22,27 +22,18 @@ stdenv.mkDerivation rec {
|
|||||||
libX11 mesa libXpm libXext libXxf86vm alsaLib
|
libX11 mesa libXpm libXext libXxf86vm alsaLib
|
||||||
# sdl
|
# sdl
|
||||||
SDL
|
SDL
|
||||||
|
zlib libvorbis curl
|
||||||
];
|
];
|
||||||
|
|
||||||
sourceRoot = "Xonotic/source/darkplaces";
|
sourceRoot = "Xonotic/source/darkplaces";
|
||||||
|
|
||||||
#patchPhase = ''
|
|
||||||
# substituteInPlace glquake.h \
|
|
||||||
# --replace 'typedef char GLchar;' '/*typedef char GLchar;*/'
|
|
||||||
#'';
|
|
||||||
|
|
||||||
NIX_LDFLAGS = ''
|
|
||||||
-rpath ${zlib.out}/lib
|
|
||||||
-rpath ${libvorbis.out}/lib
|
|
||||||
-rpath ${curl.out}/lib
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
DP_FS_BASEDIR="$out/share/xonotic"
|
DP_FS_BASEDIR="$out/share/xonotic"
|
||||||
make DP_FS_BASEDIR=$DP_FS_BASEDIR cl-release
|
make DP_FS_BASEDIR=$DP_FS_BASEDIR cl-release
|
||||||
make DP_FS_BASEDIR=$DP_FS_BASEDIR sdl-release
|
make DP_FS_BASEDIR=$DP_FS_BASEDIR sdl-release
|
||||||
make DP_FS_BASEDIR=$DP_FS_BASEDIR sv-release
|
make DP_FS_BASEDIR=$DP_FS_BASEDIR sv-release
|
||||||
'';
|
'';
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user