19 pname = "attract-mode";
20 version = "2.7.0-unstable-2024-08-02";
22 src = fetchFromGitHub {
25 rev = "6ed3a1e32a519608c0b495295cc4c18ceea6b461";
26 hash = "sha256-uhbu/DaQSE9Dissv7XLFMVYitPn8ZEewq90poCtEfYY=";
29 nativeBuildInputs = [ pkg-config ];
42 ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
49 "CC=${stdenv.cc.targetPrefix}cc"
50 "CXX=${stdenv.cc.targetPrefix}c++"
51 "STRIP=${stdenv.cc.targetPrefix}strip"
52 "OBJCOPY=${stdenv.cc.targetPrefix}objcopy"
53 "PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
54 "AR=${stdenv.cc.targetPrefix}ar"
56 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "USE_FONTCONFIG=0" ];
58 enableParallelBuilding = true;
61 description = "Frontend for arcade cabinets and media PCs";
62 homepage = "http://attractmode.org";
63 license = lib.licenses.gpl3Plus;
64 maintainers = [ lib.maintainers.hrdinka ];
65 platforms = lib.platforms.unix;
66 mainProgram = "attract";