mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
stepmania: revive and update to 5.0.7
This commit is contained in:
parent
8eef55b0e0
commit
ba53021d92
|
@ -1,26 +1,35 @@
|
||||||
{ stdenv, fetchhg, zlib, bzip2, pkgconfig, alsaLib, pulseaudio, libmad, libtheora,
|
{ fetchFromGitHub, stdenv, pkgconfig, autoconf, automake, yasm, zlib, bzip2, alsaLib
|
||||||
libvorbis, libpng, libjpeg, mesa, gtk, ffmpeg, automake, autoconf, glew }:
|
, pulseaudio, libmad, libtheora, libvorbis, libpng, libjpeg, gtk
|
||||||
|
, mesa, glew }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "stepmania-5";
|
name = "stepmania-${version}";
|
||||||
|
version = "5.0.7";
|
||||||
|
|
||||||
src = fetchhg {
|
src = fetchFromGitHub {
|
||||||
url = "https://code.google.com/p/sm-ssc/";
|
owner = "stepmania";
|
||||||
# revision = "5fdf515a180e";
|
repo = "stepmania";
|
||||||
sha256 = "05v19giq7d956islr2r8350zfwc4h8sq89xlj93ccii8rp94cvvf";
|
rev = "v${version}";
|
||||||
|
sha256 = "1lagnk8x72v5jazcbb39237fi33kp5zgg22fxw7zmvr4qwqiqbz9";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ zlib bzip2 pkgconfig alsaLib pulseaudio libmad libtheora
|
buildInputs = [
|
||||||
libvorbis libpng libjpeg mesa gtk ffmpeg automake autoconf glew ];
|
pkgconfig autoconf automake yasm zlib bzip2 alsaLib pulseaudio libmad libtheora
|
||||||
|
libvorbis libpng libjpeg gtk mesa glew
|
||||||
|
];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
substituteInPlace autoconf/m4/video.m4 \
|
||||||
|
--replace './configure $FFMPEG_CONFFLAGS' './configure --prefix='$out' $FFMPEG_CONFFLAGS'
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
'';
|
||||||
|
|
||||||
preConfigure = "./autogen.sh";
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv "$out/stepmania 5/"* $out/
|
|
||||||
rmdir "$out/stepmania 5"
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
echo "#\!/bin/sh" > $out/bin/stepmania
|
echo "#!/bin/sh" > $out/bin/stepmania
|
||||||
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${alsaLib}/lib' >> $out/bin/stepmania
|
echo "export LD_LIBRARY_PATH=$out/stepmania-5.0:${alsaLib}/lib:\$LD_LIBRARY_PATH" >> $out/bin/stepmania
|
||||||
echo "exec $out/stepmania" >> $out/bin/stepmania
|
echo "exec $out/stepmania-5.0/stepmania" >> $out/bin/stepmania
|
||||||
chmod +x $out/bin/stepmania
|
chmod +x $out/bin/stepmania
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue