2019-03-09 08:54:05 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, nasm
|
2015-11-20 23:43:25 +00:00
|
|
|
, gtk2, glib, ffmpeg, alsaLib, libmad, libogg, libvorbis
|
2017-05-14 00:36:04 +01:00
|
|
|
, glew, libpulseaudio, udev
|
2015-11-20 23:43:25 +00:00
|
|
|
}:
|
2013-05-16 05:53:49 +01:00
|
|
|
|
2019-03-09 08:54:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "stepmania";
|
2019-03-03 05:03:51 +00:00
|
|
|
version = "5.1.0-b2";
|
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}";
|
2019-03-03 05:03:51 +00:00
|
|
|
sha256 = "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn";
|
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
|
2017-05-14 00:36:04 +01:00
|
|
|
glew libpulseaudio udev
|
2015-04-20 16:16:38 +01:00
|
|
|
];
|
|
|
|
|
2015-11-20 23:43:25 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_SYSTEM_FFMPEG=1"
|
2016-04-14 02:11:58 +01: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-20 23:43:25 +00:00
|
|
|
];
|
2013-05-16 05:53:49 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
2019-03-03 05:03:51 +00:00
|
|
|
ln -s $out/stepmania-5.1/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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.stepmania.com/";
|
2015-11-20 23:43:25 +00:00
|
|
|
description = "Free dance and rhythm game for Windows, Mac, and Linux";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit; # expat version
|
2018-01-17 05:13:23 +00:00
|
|
|
maintainers = [ ];
|
2014-01-28 16:24:00 +00:00
|
|
|
};
|
2013-05-16 05:53:49 +01:00
|
|
|
}
|