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