2017-02-10 11:25:26 +00:00
|
|
|
{ expat, fetchFromGitHub, ffmpeg, fontconfig, freetype, libarchive, libjpeg
|
2018-02-24 13:12:44 +00:00
|
|
|
, libGLU_combined, openal, pkgconfig, sfml, stdenv, zlib
|
2017-02-10 11:25:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "attract-mode-${version}";
|
|
|
|
version = "2.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mickelson";
|
|
|
|
repo = "attract";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1arkfj0q3n1qbq5jwmal0kixxph8lnmv3g9bli36inab4r8zzmp8";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i "s|prefix=/usr/local|prefix=$out|" Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-02-24 13:12:44 +00:00
|
|
|
expat ffmpeg fontconfig freetype libarchive libjpeg libGLU_combined openal sfml zlib
|
2017-02-10 11:25:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A frontend for arcade cabinets and media PCs";
|
|
|
|
homepage = http://attractmode.org;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|