3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/emulators/attract-mode/default.nix

34 lines
877 B
Nix
Raw Normal View History

{ expat, fetchFromGitHub, ffmpeg_3, fontconfig, freetype, libarchive, libjpeg
2019-11-10 16:44:34 +00:00
, libGLU, libGL, openal, pkgconfig, sfml, stdenv, zlib
2017-02-10 11:25:26 +00:00
}:
stdenv.mkDerivation rec {
pname = "attract-mode";
2020-01-26 02:07:47 +00:00
version = "2.6.1";
2017-02-10 11:25:26 +00:00
src = fetchFromGitHub {
owner = "mickelson";
repo = "attract";
rev = "v${version}";
2020-01-26 02:07:47 +00:00
sha256 = "16p369j0hanm0l2fiy6h9d9pn0f3qblcy9l39all6h7rfxnhp9ii";
2017-02-10 11:25:26 +00:00
};
nativeBuildInputs = [ pkgconfig ];
patchPhase = ''
sed -i "s|prefix=/usr/local|prefix=$out|" Makefile
'';
buildInputs = [
expat ffmpeg_3 fontconfig freetype libarchive libjpeg libGLU libGL 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";
2017-02-10 11:25:26 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ hrdinka ];
platforms = with platforms; linux;
};
}