nixpkgs/pkgs/games/super-tux-kart/default.nix

58 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, fetchsvn, cmake, pkgconfig
, openal, freealut, libGLU_combined, libvorbis, libogg, gettext, curl, freetype
2019-04-21 18:56:28 +02:00
, fribidi, libtool, bluez, libjpeg, libpng, zlib, libX11, libXrandr, enet }:
let
dir = "stk-code";
in stdenv.mkDerivation rec {
2019-04-21 18:56:28 +02:00
pname = "supertuxkart";
version = "1.0";
2018-01-19 16:05:41 +01:00
2015-05-17 04:02:43 +02:00
srcs = [
(fetchFromGitHub {
owner = "supertuxkart";
repo = "stk-code";
rev = version;
2019-04-21 18:56:28 +02:00
sha256 = "03mrnzrvfdgjc687n718f5zsray6vbdlv4irzy2mfi78bz3bkjll";
name = dir;
2015-05-17 04:02:43 +02:00
})
(fetchsvn {
url = "https://svn.code.sf.net/p/supertuxkart/code/stk-assets";
2019-04-21 18:56:28 +02:00
rev = "18212";
sha256 = "1dyj8r5rfifhnhayga8w8irkpa99vw57xjmy74cp8xz8g7zvdzqf";
name = "stk-assets";
2015-05-17 04:02:43 +02:00
})
];
2018-01-19 16:05:41 +01:00
nativeBuildInputs = [ cmake gettext libtool pkgconfig ];
buildInputs = [
libX11 libXrandr
openal freealut libGLU_combined libvorbis libogg zlib freetype
2019-04-21 18:56:28 +02:00
curl fribidi bluez libjpeg libpng enet
];
2013-01-10 20:55:46 +01:00
enableParallelBuilding = true;
2018-01-19 16:05:41 +01:00
cmakeFlags = [
"-DBUILD_RECORDER=OFF" # libopenglrecorder is not in nixpkgs
"-DUSE_SYSTEM_ANGELSCRIPT=OFF" # doesn't work with 2.31.2 or 2.32.0
];
sourceRoot = dir;
meta = with stdenv.lib; {
description = "A Free 3D kart racing game";
longDescription = ''
SuperTuxKart is a Free 3D kart racing game, with many tracks,
characters and items for you to try, similar in spirit to Mario
Kart.
'';
homepage = https://supertuxkart.net/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ pyrolagus fuuzetsu peterhoeg ];
platforms = with platforms; linux;
};
}