2021-06-09 13:53:10 +02:00
|
|
|
{ expat, fetchFromGitHub, ffmpeg, fontconfig, freetype, libarchive, libjpeg
|
2021-01-17 03:30:45 +01:00
|
|
|
, libGLU, libGL, openal, pkg-config, sfml, lib, stdenv, zlib
|
2017-02-10 12:25:26 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "attract-mode";
|
2020-01-26 03:07:47 +01:00
|
|
|
version = "2.6.1";
|
2017-02-10 12:25:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mickelson";
|
|
|
|
repo = "attract";
|
|
|
|
rev = "v${version}";
|
2020-01-26 03:07:47 +01:00
|
|
|
sha256 = "16p369j0hanm0l2fiy6h9d9pn0f3qblcy9l39all6h7rfxnhp9ii";
|
2017-02-10 12:25:26 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:30:45 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-02-10 12:25:26 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i "s|prefix=/usr/local|prefix=$out|" Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-09 13:53:10 +02:00
|
|
|
expat ffmpeg fontconfig freetype libarchive libjpeg libGLU libGL openal sfml zlib
|
2017-02-10 12:25:26 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-02-10 12:25:26 +01:00
|
|
|
description = "A frontend for arcade cabinets and media PCs";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://attractmode.org";
|
2017-02-10 12:25:26 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|