mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
stepmania: 5.0.7 -> 5.0.10
This commit is contained in:
parent
e774cd6fc2
commit
eff24b9cdf
@ -1,40 +1,44 @@
|
||||
{ fetchFromGitHub, stdenv, pkgconfig, autoconf, automake, yasm, zlib, bzip2, alsaLib
|
||||
, libpulseaudio, libmad, libtheora, libvorbis, libpng, libjpeg, gtk
|
||||
, mesa, glew }:
|
||||
{ stdenv, lib, fetchFromGitHub, cmake, nasm
|
||||
, gtk2, glib, ffmpeg, alsaLib, libmad, libogg, libvorbis
|
||||
, glew, libpulseaudio
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "stepmania-${version}";
|
||||
version = "5.0.7";
|
||||
version = "5.0.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stepmania";
|
||||
repo = "stepmania";
|
||||
rev = "v${version}";
|
||||
sha256 = "1lagnk8x72v5jazcbb39237fi33kp5zgg22fxw7zmvr4qwqiqbz9";
|
||||
sha256 = "174gzvk42gwm56hpkz51csad9xi4dg466xv0mf1z39xd7mqd5j5w";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake nasm ];
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig autoconf automake yasm zlib bzip2 alsaLib libpulseaudio libmad libtheora
|
||||
libvorbis libpng libjpeg gtk mesa glew
|
||||
gtk2 glib ffmpeg alsaLib libmad libogg libvorbis
|
||||
glew libpulseaudio
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace autoconf/m4/video.m4 \
|
||||
--replace './configure $FFMPEG_CONFFLAGS' './configure --prefix='$out' $FFMPEG_CONFFLAGS'
|
||||
|
||||
./autogen.sh
|
||||
'';
|
||||
cmakeFlags = [
|
||||
"-DWITH_SYSTEM_FFMPEG=1"
|
||||
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2}/lib/gtk-2.0/include"
|
||||
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib}/lib/glib-2.0/include"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/bin
|
||||
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
|
||||
chmod +x $out/bin/stepmania
|
||||
ln -s $out/stepmania-5.0/stepmania $out/bin/stepmania
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.mornfall ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.stepmania.com/";
|
||||
description = "Free dance and rhythm game for Windows, Mac, and Linux";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.mit; # expat version
|
||||
maintainers = [ maintainers.mornfall ];
|
||||
};
|
||||
}
|
||||
|
@ -14153,7 +14153,7 @@ let
|
||||
withPrimus = config.steam.primus or false;
|
||||
};
|
||||
|
||||
stepmania = callPackage ../games/stepmania {};
|
||||
stepmania = callPackage ../games/stepmania { };
|
||||
|
||||
stuntrally = callPackage ../games/stuntrally { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user