nixpkgs/pkgs/misc/emulators/attract-mode/default.nix
Christoph Hrdinka 870705b611
attract-mode: ffmpeg_3 -> ffmpeg
Replace insecure FFMPEG v3 with current version.

See https://github.com/NixOS/nixpkgs/issues/120705
2021-06-09 13:53:10 +02:00

34 lines
873 B
Nix

{ expat, fetchFromGitHub, ffmpeg, fontconfig, freetype, libarchive, libjpeg
, libGLU, libGL, openal, pkg-config, sfml, lib, stdenv, zlib
}:
stdenv.mkDerivation rec {
pname = "attract-mode";
version = "2.6.1";
src = fetchFromGitHub {
owner = "mickelson";
repo = "attract";
rev = "v${version}";
sha256 = "16p369j0hanm0l2fiy6h9d9pn0f3qblcy9l39all6h7rfxnhp9ii";
};
nativeBuildInputs = [ pkg-config ];
patchPhase = ''
sed -i "s|prefix=/usr/local|prefix=$out|" Makefile
'';
buildInputs = [
expat ffmpeg fontconfig freetype libarchive libjpeg libGLU libGL openal sfml zlib
];
meta = with 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;
};
}