1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
expat,
ffmpeg_7,
freetype,
libarchive,
libjpeg,
libGLU,
sfml,
zlib,
openal,
fontconfig,
darwin,
}:
stdenv.mkDerivation {
pname = "attract-mode";
version = "2.7.0-unstable-2024-08-02";
src = fetchFromGitHub {
owner = "mickelson";
repo = "attract";
rev = "6ed3a1e32a519608c0b495295cc4c18ceea6b461";
hash = "sha256-uhbu/DaQSE9Dissv7XLFMVYitPn8ZEewq90poCtEfYY=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs =
[
expat
ffmpeg_7
freetype
libarchive
libjpeg
libGLU
sfml
zlib
]
++ lib.optionals (!stdenv.isDarwin) [
openal
fontconfig
]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Cocoa
darwin.apple_sdk.frameworks.Carbon
darwin.apple_sdk.frameworks.IOKit
darwin.apple_sdk.frameworks.CoreVideo
darwin.apple_sdk.frameworks.OpenAL
];
makeFlags = [
"prefix=$(out)"
"CC=${stdenv.cc.targetPrefix}cc"
"CXX=${stdenv.cc.targetPrefix}c++"
"STRIP=${stdenv.cc.targetPrefix}strip"
"OBJCOPY=${stdenv.cc.targetPrefix}objcopy"
"PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
"AR=${stdenv.cc.targetPrefix}ar"
"BUILD_EXPAT=0"
] ++ lib.optionals stdenv.isDarwin [ "USE_FONTCONFIG=0" ];
enableParallelBuilding = true;
meta = {
description = "Frontend for arcade cabinets and media PCs";
homepage = "http://attractmode.org";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.hrdinka ];
platforms = lib.platforms.unix;
mainProgram = "attract";
};
}
|