nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 mkDerivation,
3 lib,
4 fetchurl,
5 cmake,
6 pkg-config,
7 qtbase,
8 qt5,
9 libGLU,
10 libGL,
11 libglut ? null,
12 openal ? null,
13 SDL2 ? null,
14}:
15
16mkDerivation rec {
17 pname = "yabause";
18 version = "0.9.15";
19
20 src = fetchurl {
21 url = "https://download.tuxfamily.org/yabause/releases/${version}/${pname}-${version}.tar.gz";
22 sha256 = "1cn2rjjb7d9pkr4g5bqz55vd4pzyb7hg94cfmixjkzzkw0zw8d23";
23 };
24
25 nativeBuildInputs = [
26 cmake
27 pkg-config
28 ];
29 buildInputs = [
30 qtbase
31 qt5.qtmultimedia
32 libGLU
33 libGL
34 libglut
35 openal
36 SDL2
37 ];
38
39 patches = [
40 ./linkage-rwx-linux-elf.patch
41 # Fixes derived from
42 # https://github.com/Yabause/yabause/commit/06a816c032c6f7fd79ced6e594dd4b33571a0e73
43 ./0001-Fixes-for-Qt-5.11-upgrade.patch
44 ];
45
46 cmakeFlags = [
47 "-DYAB_NETWORK=ON"
48 "-DYAB_OPTIMIZED_DMA=ON"
49 "-DYAB_PORTS=qt"
50 ];
51
52 meta = with lib; {
53 description = "Open-source Sega Saturn emulator";
54 mainProgram = "yabause";
55 homepage = "https://yabause.org/";
56 license = licenses.gpl2Plus;
57 maintainers = with maintainers; [ ];
58 platforms = platforms.linux;
59 };
60}