2015-04-20 17:16:38 +02:00
|
|
|
{ fetchFromGitHub, stdenv, pkgconfig, autoconf, automake, yasm, zlib, bzip2, alsaLib
|
2015-05-27 21:42:15 +02:00
|
|
|
, libpulseaudio, libmad, libtheora, libvorbis, libpng, libjpeg, gtk
|
2015-04-20 17:16:38 +02:00
|
|
|
, mesa, glew }:
|
2013-05-16 06:53:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-20 17:16:38 +02:00
|
|
|
name = "stepmania-${version}";
|
|
|
|
version = "5.0.7";
|
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}";
|
|
|
|
sha256 = "1lagnk8x72v5jazcbb39237fi33kp5zgg22fxw7zmvr4qwqiqbz9";
|
2013-05-16 06:53:49 +02:00
|
|
|
};
|
|
|
|
|
2015-04-20 17:16:38 +02:00
|
|
|
buildInputs = [
|
2015-05-27 21:42:15 +02:00
|
|
|
pkgconfig autoconf automake yasm zlib bzip2 alsaLib libpulseaudio libmad libtheora
|
2015-04-20 17:16:38 +02:00
|
|
|
libvorbis libpng libjpeg gtk mesa glew
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace autoconf/m4/video.m4 \
|
|
|
|
--replace './configure $FFMPEG_CONFFLAGS' './configure --prefix='$out' $FFMPEG_CONFFLAGS'
|
|
|
|
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
2013-05-16 06:53:49 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
2015-04-20 17:16:38 +02:00
|
|
|
echo "#!/bin/sh" > $out/bin/stepmania
|
|
|
|
echo "export LD_LIBRARY_PATH=$out/stepmania-5.0:${alsaLib}/lib:\$LD_LIBRARY_PATH" >> $out/bin/stepmania
|
|
|
|
echo "exec $out/stepmania-5.0/stepmania" >> $out/bin/stepmania
|
2013-05-16 06:53:49 +02:00
|
|
|
chmod +x $out/bin/stepmania
|
|
|
|
'';
|
2014-01-28 17:24:00 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
2014-09-13 13:51:39 +02:00
|
|
|
maintainers = [ maintainers.mornfall ];
|
2014-01-28 17:24:00 +01:00
|
|
|
};
|
2013-05-16 06:53:49 +02:00
|
|
|
}
|