2015-06-12 13:29:47 +02:00
|
|
|
{ stdenv
|
|
|
|
, atk
|
|
|
|
, bzip2
|
|
|
|
, cairo
|
|
|
|
, fetchurl
|
2015-06-29 17:14:15 +02:00
|
|
|
, fluidsynth
|
2015-06-12 13:29:47 +02:00
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
, gdk_pixbuf
|
|
|
|
, glib
|
|
|
|
, gtk
|
|
|
|
, libjpeg_turbo
|
|
|
|
, mesa_glu
|
|
|
|
, mesa_noglu
|
|
|
|
, openssl
|
|
|
|
, pango
|
|
|
|
, SDL
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
2015-06-22 18:19:35 +02:00
|
|
|
assert stdenv.system == "x86_64-linux";
|
|
|
|
|
2015-06-12 13:29:47 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-18 02:56:14 +02:00
|
|
|
name = "zandronum-2.1.2";
|
2015-06-12 13:29:47 +02:00
|
|
|
src = fetchurl {
|
2015-08-18 02:56:14 +02:00
|
|
|
url = "http://zandronum.com/downloads/zandronum2.1.2-linux-x86_64.tar.bz2";
|
|
|
|
sha256 = "1f5aw2m8c0bl3lrvi2k3rrzq3q9x1ikxnxxjgh3k9qvanfn7ykbk";
|
2015-06-12 13:29:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
libPath = stdenv.lib.makeLibraryPath [
|
|
|
|
atk
|
|
|
|
bzip2
|
|
|
|
cairo
|
2015-06-29 17:14:15 +02:00
|
|
|
fluidsynth
|
2015-06-12 13:29:47 +02:00
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
gdk_pixbuf
|
|
|
|
glib
|
|
|
|
gtk
|
|
|
|
libjpeg_turbo
|
|
|
|
mesa_glu
|
|
|
|
mesa_noglu
|
|
|
|
openssl
|
|
|
|
pango
|
|
|
|
SDL
|
|
|
|
stdenv.cc.cc
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
tar xf $src
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp * $out/share
|
|
|
|
|
|
|
|
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/share/zandronum
|
|
|
|
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/share/zandronum-server
|
|
|
|
|
|
|
|
cat > $out/bin/zandronum << EOF
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH=$libPath:$out/share $out/share/zandronum "\$@"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat > $out/bin/zandronum-server << EOF
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH=$libPath:$out/share $out/share/zandronum-server "\$@"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x "$out/bin/zandronum"
|
|
|
|
chmod +x "$out/bin/zandronum-server"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://zandronum.com/;
|
|
|
|
description = "multiplayer oriented port, based off Skulltag, for Doom and Doom II by id Software. Binary version for online play.";
|
|
|
|
maintainer = [ stdenv.lib.maintainers.lassulus ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|