3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/ultimatestunts/default.nix
2020-04-10 17:54:53 +01:00

26 lines
823 B
Nix

{stdenv, fetchurl, SDL, libGLU, libGL, SDL_image, freealut, openal, libvorbis,
pkgconfig}:
stdenv.mkDerivation {
name = "ultimate-stunts-0.7.6.1";
src = fetchurl {
url = "mirror://sourceforge/ultimatestunts/ultimatestunts-srcdata-0761.tar.gz";
sha256 = "0rd565ml6l927gyq158klhni7myw8mgllhv0xl1fg9m8hlzssgrv";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ SDL libGLU libGL SDL_image freealut openal libvorbis ];
postPatch = ''
sed -e '1i#include <unistd.h>' -i $(find . -name '*.c' -o -name '*.cpp')
'';
meta = {
homepage = "http://www.ultimatestunts.nl/";
description = "Remake of the popular racing DOS-game Stunts";
license = stdenv.lib.licenses.gpl2Plus;
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}