1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/games/stepmania/default.nix
2014-01-28 17:31:17 +01:00

32 lines
1,018 B
Nix

{ stdenv, fetchhg, zlib, bzip2, pkgconfig, alsaLib, pulseaudio, libmad, libtheora,
libvorbis, libpng, libjpeg, mesa, gtk, ffmpeg, automake, autoconf, glew }:
stdenv.mkDerivation rec {
name = "stepmania-5";
src = fetchhg {
url = "https://code.google.com/p/sm-ssc/";
# revision = "5fdf515a180e";
sha256 = "05v19giq7d956islr2r8350zfwc4h8sq89xlj93ccii8rp94cvvf";
};
buildInputs = [ zlib bzip2 pkgconfig alsaLib pulseaudio libmad libtheora
libvorbis libpng libjpeg mesa gtk ffmpeg automake autoconf glew ];
preConfigure = "./autogen.sh";
postInstall = ''
mv "$out/stepmania 5/"* $out/
rmdir "$out/stepmania 5"
mkdir -p $out/bin
echo "#\!/bin/sh" > $out/bin/stepmania
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${alsaLib}/lib' >> $out/bin/stepmania
echo "exec $out/stepmania" >> $out/bin/stepmania
chmod +x $out/bin/stepmania
'';
meta = with stdenv.lib; {
platforms = platforms.linux;
maintainers = maintainers.mornfall;
};
}