summary refs log tree commit diff
path: root/pkgs/games/urbanterror
diff options
context:
space:
mode:
authorCray Elliott <MP2E@archlinux.us>2017-01-30 00:22:50 -0800
committerCray Elliott <MP2E@archlinux.us>2017-02-02 15:37:11 -0800
commita430acb4d8cdac5fa2be658bc319e347fcc3f3d1 (patch)
tree57719e4989dd54e3d3110bb394a26e79c356ef30 /pkgs/games/urbanterror
parent6b44f3523a2598b1303e0f7b26e4439b79d00380 (diff)
downloadnixpkgs-a430acb4d8cdac5fa2be658bc319e347fcc3f3d1.tar
nixpkgs-a430acb4d8cdac5fa2be658bc319e347fcc3f3d1.tar.gz
nixpkgs-a430acb4d8cdac5fa2be658bc319e347fcc3f3d1.tar.bz2
nixpkgs-a430acb4d8cdac5fa2be658bc319e347fcc3f3d1.tar.lz
nixpkgs-a430acb4d8cdac5fa2be658bc319e347fcc3f3d1.tar.xz
nixpkgs-a430acb4d8cdac5fa2be658bc319e347fcc3f3d1.tar.zst
nixpkgs-a430acb4d8cdac5fa2be658bc319e347fcc3f3d1.zip
urbanterror: 4.2.023 -> 4.3.1
Diffstat (limited to 'pkgs/games/urbanterror')
-rw-r--r--pkgs/games/urbanterror/default.nix25
1 files changed, 17 insertions, 8 deletions
diff --git a/pkgs/games/urbanterror/default.nix b/pkgs/games/urbanterror/default.nix
index 9224d5872c2..50b127fa9dc 100644
--- a/pkgs/games/urbanterror/default.nix
+++ b/pkgs/games/urbanterror/default.nix
@@ -1,25 +1,30 @@
 { stdenv, fetchurl, unzip, SDL, mesa, openal, curl, libXxf86vm }:
+
 stdenv.mkDerivation rec {
   name = "urbanterror-${version}";
-  version = "4.2.023";
+  version = "4.3.1";
+
   srcs =
     [ (fetchurl {
-         url = "http://mirror.urtstats.net/urbanterror/UrbanTerror42_full023.zip";
-         sha256 = "e287e2a17432b81551f5c16e431d752484ce9be10508e756542f653757a29090";
+         url = "http://cdn.fs1.urbanterror.info/urt/43/releases/zips/UrbanTerror431_full.zip";
+         sha256 = "1dfnyb2grf2fxxphwj7p2ff721j2l0gwrj76jzympr32sim5a6cw";
        })
       (fetchurl {
-         url = "https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-4.2.023.tar.gz";
-         sha256 = "03zrrx5b96c1srf2p24ca7zygq84byvrmcgh42d8bh5ds579ziqp";
+         url = "https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-4.3.1.zip";
+         sha256 = "1rbiqa1ki73649np3af96cilavkgv66a0b6p0a5x26cxvpgg128k";
        })
     ];
-  buildInputs = [ unzip SDL mesa openal curl libXxf86vm];
-  sourceRoot = "ioq3-for-UrbanTerror-4-release-4.2.023";
+
+  buildInputs = [ unzip SDL mesa openal curl libXxf86vm ];
+  sourceRoot = "ioq3-for-UrbanTerror-4-release-4.3.1";
+
   configurePhase = ''
     echo "USE_OPENAL = 1" > Makefile.local
     echo "USE_OPENAL_DLOPEN = 0" >> Makefile.local
     echo "USE_CURL = 1" >> Makefile.local
     echo "USE_CURL_DLOPEN = 0" >> Makefile.local
   '';
+
   installPhase = ''
     destDir="$out/opt/urbanterror"
     mkdir -p "$destDir"
@@ -28,7 +33,7 @@ stdenv.mkDerivation rec {
           "$destDir/Quake3-UrT"
     cp -v build/release-linux-*/Quake3-UrT-Ded.* \
           "$destDir/Quake3-UrT-Ded"
-    cp -rv ../UrbanTerror42/q3ut4 "$destDir"
+    cp -rv ../UrbanTerror43/q3ut4 "$destDir"
     cat << EOF > "$out/bin/urbanterror"
     #! ${stdenv.shell}
     cd "$destDir"
@@ -42,11 +47,15 @@ stdenv.mkDerivation rec {
     EOF
     chmod +x "$out/bin/urbanterror-ded"
   '';
+
   postFixup = ''
     p=$out/opt/urbanterror/Quake3-UrT
     cur_rpath=$(patchelf --print-rpath $p)
     patchelf --set-rpath $cur_rpath:${mesa}/lib $p
   '';
+
+  hardeningDisable = [ "format" ];
+
   meta = with stdenv.lib; {
     description = "A multiplayer tactical FPS on top of Quake 3 engine";
     longDescription = ''