mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
01d4e2fe33
After making `ffmpeg` point to the latest `ffmpeg_4`, all packages that used `ffmpeg` without requiring a specific version now use ffmpeg_3 explicitly so they shouldn't change.
34 lines
877 B
Nix
34 lines
877 B
Nix
{ expat, fetchFromGitHub, ffmpeg_3, fontconfig, freetype, libarchive, libjpeg
|
|
, libGLU, libGL, openal, pkgconfig, sfml, stdenv, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "attract-mode";
|
|
version = "2.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mickelson";
|
|
repo = "attract";
|
|
rev = "v${version}";
|
|
sha256 = "16p369j0hanm0l2fiy6h9d9pn0f3qblcy9l39all6h7rfxnhp9ii";
|
|
};
|
|
|
|
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
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|