diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-04-17 05:24:26 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-04-17 05:24:40 +0300 |
commit | a832a71c2c8d7bb8a9afb19f03a8f616de48a490 (patch) | |
tree | a7f975cd5ab41e6a42db5a136fc5c7fbe4ae2573 /pkgs/games/vdrift | |
parent | bd5cd56a49c42b6a726bd9c53421c701ff0ab25d (diff) |
vdrift: 2012-07-22 -> 2014-10-20
Diffstat (limited to 'pkgs/games/vdrift')
-rw-r--r-- | pkgs/games/vdrift/default.nix | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/pkgs/games/vdrift/default.nix b/pkgs/games/vdrift/default.nix index bba7823f66302..ea3231dbe63ef 100644 --- a/pkgs/games/vdrift/default.nix +++ b/pkgs/games/vdrift/default.nix @@ -1,26 +1,28 @@ -{ fetchurl, stdenv, mesa, SDL, scons, freeglut, SDL_image, glew, libvorbis, - asio, boost, SDL_gfx, pkgconfig, bullet, curl, libarchive }: +{ stdenv, fetchFromGitHub, fetchsvn, pkgconfig, scons, mesa, SDL2, SDL2_image, libvorbis, + bullet, curl, gettext }: stdenv.mkDerivation rec { - version = "2012-07-22"; + version = "2014-10-20"; name = "vdrift-${version}"; - patch = "c"; # see https://github.com/VDrift/vdrift/issues/110 - src = fetchurl { - url = "mirror://sourceforge/vdrift/${name}.tar.bz2"; - sha256 = "1yqkc7y4s4g5ylw501bf0c03la7kfddjdk4yyi1xkcwy3pmgw2al"; + src = fetchFromGitHub { + owner = "VDrift"; + repo = "vdrift"; + rev = version; + sha256 = "09yny5qzdrpffq3xhqwfymsracwsxwmdd5xa8bxx9a56hhxbak2l"; }; - patches = fetchurl { - url = "mirror://sourceforge/vdrift/${name}${patch}_patch.diff"; - sha256 = "08mfg4xxkzyp6602cgqyjzc3rn0zsaa3ddjkpd44b83drv19lriy"; + data = fetchsvn { + url = "svn://svn.code.sf.net/p/vdrift/code/vdrift-data"; + rev = 1386; + sha256 = "0ka6zir9hg0md5p03dl461jkvbk05ywyw233hnc3ka6shz3vazi1"; }; - patchFlags = "-p0"; - buildInputs = [ scons mesa SDL freeglut SDL_image glew libvorbis asio boost - SDL_gfx pkgconfig bullet curl libarchive ]; + buildInputs = [ pkgconfig scons mesa SDL2 SDL2_image libvorbis bullet curl gettext ]; buildPhase = '' + cp -r --reflink=auto $data data + chmod -R +w data sed -i -e s,/usr/local,$out, SConstruct scons ''; |