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
|
||||
# sdl
|
||||
SDL
|
||||
zlib libvorbis curl
|
||||
];
|
||||
|
||||
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 = ''
|
||||
DP_FS_BASEDIR="$out/share/xonotic"
|
||||
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 sv-release
|
||||
'';
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
|
Loading…
Reference in New Issue
Block a user