2015-11-20 23:43:25 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, nasm
|
|
|
|
, gtk2, glib, ffmpeg, alsaLib, libmad, libogg, libvorbis
|
|
|
|
, glew, libpulseaudio
|
|
|
|
}:
|
2013-05-16 05:53:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-20 16:16:38 +01:00
|
|
|
name = "stepmania-${version}";
|
2015-11-20 23:43:25 +00:00
|
|
|
version = "5.0.10";
|
2013-05-16 05:53:49 +01:00
|
|
|
|
2015-04-20 16:16:38 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stepmania";
|
|
|
|
repo = "stepmania";
|
|
|
|
rev = "v${version}";
|
2015-11-20 23:43:25 +00:00
|
|
|
sha256 = "174gzvk42gwm56hpkz51csad9xi4dg466xv0mf1z39xd7mqd5j5w";
|
2013-05-16 05:53:49 +01:00
|
|
|
};
|
|
|
|
|
2015-11-20 23:43:25 +00:00
|
|
|
nativeBuildInputs = [ cmake nasm ];
|
|
|
|
|
2015-04-20 16:16:38 +01:00
|
|
|
buildInputs = [
|
2015-11-20 23:43:25 +00:00
|
|
|
gtk2 glib ffmpeg alsaLib libmad libogg libvorbis
|
|
|
|
glew libpulseaudio
|
2015-04-20 16:16:38 +01:00
|
|
|
];
|
|
|
|
|
2015-11-20 23:43:25 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_SYSTEM_FFMPEG=1"
|
|
|
|
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2}/lib/gtk-2.0/include"
|
|
|
|
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib}/lib/glib-2.0/include"
|
|
|
|
];
|
2013-05-16 05:53:49 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
2015-11-20 23:43:25 +00:00
|
|
|
ln -s $out/stepmania-5.0/stepmania $out/bin/stepmania
|
2013-05-16 05:53:49 +01:00
|
|
|
'';
|
2014-01-28 16:24:00 +00:00
|
|
|
|
2015-11-20 23:43:25 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://www.stepmania.com/";
|
|
|
|
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 16:24:00 +00:00
|
|
|
};
|
2013-05-16 05:53:49 +01:00
|
|
|
}
|