1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5, pkg-config
6, wxGTK
7, sfml
8, fluidsynth
9, curl
10, freeimage
11, ftgl
12, glew
13, zip
14, lua
15, fmt
16, mpg123
17}:
18
19stdenv.mkDerivation {
20 pname = "slade";
21 version = "unstable-2021-05-13";
22
23 src = fetchFromGitHub {
24 owner = "sirjuddington";
25 repo = "SLADE";
26 rev = "d2e249c89062a44c912a9b86951526edc8735ba0";
27 sha256 = "08dsvx7m7c97jm8fxzivmi1fr47hj53y0lv57clqc35bh2gi62dg";
28 };
29
30 cmakeFlags = [
31 "-DwxWidgets_CONFIG_EXECUTABLE=${wxGTK}/bin/wx-config"
32 "-DWX_GTK3=OFF"
33 "-DNO_WEBVIEW=1"
34 ];
35 nativeBuildInputs = [ cmake pkg-config zip ];
36 buildInputs = [ wxGTK wxGTK.gtk sfml fluidsynth curl freeimage ftgl glew lua fmt mpg123 ];
37
38 meta = with lib; {
39 description = "Doom editor";
40 homepage = "http://slade.mancubus.net/";
41 license = licenses.gpl2Plus;
42 platforms = [ "x86_64-linux" "i686-linux" ];
43 maintainers = with maintainers; [ ertes ];
44 };
45}