nixpkgs/pkgs/applications/emulators/attract-mode/default.nix

34 lines
872 B
Nix
Raw Normal View History

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