diff options
author | Petr Rockai <me@mornfall.net> | 2013-05-16 06:53:49 +0200 |
---|---|---|
committer | Evgeny Egorochkin <phreedom@yandex.ru> | 2013-12-13 20:56:36 +0200 |
commit | c5927837413edd3d738cfc500e0988125ee6495a (patch) | |
tree | 4e6b5dabaf5b140bfd336ac33a36550f303f4e20 /pkgs/games | |
parent | 492c4838b267187ee93b42d8d55fdffecb75abb6 (diff) | |
download | nixlib-c5927837413edd3d738cfc500e0988125ee6495a.tar nixlib-c5927837413edd3d738cfc500e0988125ee6495a.tar.gz nixlib-c5927837413edd3d738cfc500e0988125ee6495a.tar.bz2 nixlib-c5927837413edd3d738cfc500e0988125ee6495a.tar.lz nixlib-c5927837413edd3d738cfc500e0988125ee6495a.tar.xz nixlib-c5927837413edd3d738cfc500e0988125ee6495a.tar.zst nixlib-c5927837413edd3d738cfc500e0988125ee6495a.zip |
stepmania: A dance (rhythm) game in the spirit of DDR.
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/stepmania/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/games/stepmania/default.nix b/pkgs/games/stepmania/default.nix new file mode 100644 index 000000000000..130f1f905a44 --- /dev/null +++ b/pkgs/games/stepmania/default.nix @@ -0,0 +1,26 @@ +{ 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 + ''; +} |