2021-01-15 04:31:39 +00:00
|
|
|
{lib, stdenv, fetchurl, SDL, libGLU, libGL, SDL_image, freealut, openal, libvorbis,
|
2021-01-17 05:49:22 +00:00
|
|
|
pkg-config}:
|
2009-12-23 22:28:50 +00:00
|
|
|
|
2021-06-22 21:44:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ultimate-stunts";
|
2021-08-17 19:28:13 +00:00
|
|
|
version = "0.7.7.1";
|
2009-12-23 22:28:50 +00:00
|
|
|
src = fetchurl {
|
2021-06-22 21:44:58 +00:00
|
|
|
url = "mirror://sourceforge/ultimatestunts/ultimatestunts-srcdata-${lib.replaceStrings ["."] [""] version}.tar.gz";
|
2021-08-17 19:28:13 +00:00
|
|
|
sha256 = "sha256-/MBuSi/yxcG9k3ZwrNsHkUDzzg798AV462VZog67JtM=";
|
2009-12-23 22:28:50 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 05:49:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ SDL libGLU libGL SDL_image freealut openal libvorbis ];
|
2009-12-23 22:28:50 +00:00
|
|
|
|
2014-02-02 11:03:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -e '1i#include <unistd.h>' -i $(find . -name '*.c' -o -name '*.cpp')
|
|
|
|
'';
|
|
|
|
|
2009-12-23 22:28:50 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.ultimatestunts.nl/";
|
2009-12-23 22:28:50 +00:00
|
|
|
description = "Remake of the popular racing DOS-game Stunts";
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [viric];
|
|
|
|
platforms = with lib.platforms; linux;
|
2009-12-23 22:28:50 +00:00
|
|
|
};
|
|
|
|
}
|