2016-03-09 20:13:54 +01:00
|
|
|
{ stdenv, lib, fetchpatch, fetchFromGitHub, cmake, nasm
|
2015-11-21 00:43:25 +01:00
|
|
|
, gtk2, glib, ffmpeg, alsaLib, libmad, libogg, libvorbis
|
2017-05-14 01:36:04 +02:00
|
|
|
, glew, libpulseaudio, udev
|
2015-11-21 00:43:25 +01:00
|
|
|
}:
|
2013-05-16 06:53:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-20 17:16:38 +02:00
|
|
|
name = "stepmania-${version}";
|
2017-05-14 01:36:04 +02:00
|
|
|
version = "5.0.12";
|
2013-05-16 06:53:49 +02:00
|
|
|
|
2015-04-20 17:16:38 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stepmania";
|
|
|
|
repo = "stepmania";
|
|
|
|
rev = "v${version}";
|
2017-05-14 01:36:04 +02:00
|
|
|
sha256 = "0ig5pnw78j45b35kfr76phaqbac9b2f6wg3c63l6mf0nrq17wslz";
|
2013-05-16 06:53:49 +02:00
|
|
|
};
|
|
|
|
|
2015-11-21 00:43:25 +01:00
|
|
|
nativeBuildInputs = [ cmake nasm ];
|
|
|
|
|
2015-04-20 17:16:38 +02:00
|
|
|
buildInputs = [
|
2015-11-21 00:43:25 +01:00
|
|
|
gtk2 glib ffmpeg alsaLib libmad libogg libvorbis
|
2017-05-14 01:36:04 +02:00
|
|
|
glew libpulseaudio udev
|
2015-04-20 17:16:38 +02:00
|
|
|
];
|
|
|
|
|
2015-11-21 00:43:25 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_SYSTEM_FFMPEG=1"
|
2016-04-14 03:11:58 +02:00
|
|
|
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
|
|
|
|
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
2015-11-21 00:43:25 +01:00
|
|
|
];
|
2013-05-16 06:53:49 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
2015-11-21 00:43:25 +01:00
|
|
|
ln -s $out/stepmania-5.0/stepmania $out/bin/stepmania
|
2013-05-16 06:53:49 +02:00
|
|
|
'';
|
2014-01-28 17:24:00 +01:00
|
|
|
|
2015-11-21 00:43:25 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.stepmania.com/;
|
2015-11-21 00:43:25 +01:00
|
|
|
description = "Free dance and rhythm game for Windows, Mac, and Linux";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit; # expat version
|
|
|
|
maintainers = [ maintainers.mornfall ];
|
2014-01-28 17:24:00 +01:00
|
|
|
};
|
2013-05-16 06:53:49 +02:00
|
|
|
}
|