forked from Siv3D/OpenSiv3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
61 lines (55 loc) · 1.47 KB
/
flake.nix
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
{
description =
"A C++20 framework for creative coding (2D/3D games, media art, visualizers, and simulators).";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = { pkgs, ... }: {
packages.default = with pkgs;
stdenv.mkDerivation {
pname = "OpenSiv3D";
version = "0.6.15";
src = ./.;
nativeBuildInputs = [ cmake ninja pkgconf ];
buildInputs = [
zlib
alsa-lib
ffmpeg
boost175
giflib
mesa
libmpg123
opencv
opusfile
soundtouch
libtiff
libwebp
util-linux
xorg.libXft
xorg.libXdmcp
xorg.libXtst
libGLU
libvorbis
harfbuzz
glib
gtk3
curl
pcre
pcre2
libselinux
libthai
libsepol
libdatrie
libxkbcommon
libepoxy
];
cmakeFlags =
[ "-GNinja" "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-S ../Linux" ];
};
};
};
}