nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 pkg-config,
7 which,
8 zip,
9 wxGTK,
10 gtk3,
11 sfml_2,
12 fluidsynth,
13 curl,
14 freeimage,
15 ftgl,
16 glew,
17 lua,
18 mpg123,
19 wrapGAppsHook3,
20}:
21
22stdenv.mkDerivation rec {
23 pname = "slade";
24 version = "3.2.7";
25
26 src = fetchFromGitHub {
27 owner = "sirjuddington";
28 repo = "SLADE";
29 rev = version;
30 hash = "sha256-+i506uzO2q/9k7en6CKs4ui9gjszrMOYwW+V9W5Lvns=";
31 };
32
33 nativeBuildInputs = [
34 cmake
35 pkg-config
36 which
37 zip
38 wrapGAppsHook3
39 ];
40
41 buildInputs = [
42 wxGTK
43 gtk3
44 sfml_2
45 fluidsynth
46 curl
47 freeimage
48 ftgl
49 glew
50 lua
51 mpg123
52 ];
53
54 cmakeFlags = [
55 "-DwxWidgets_LIBRARIES=${wxGTK}/lib"
56 (lib.cmakeFeature "CL_WX_CONFIG" (lib.getExe' (lib.getDev wxGTK) "wx-config"))
57 ];
58
59 env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
60
61 preFixup = ''
62 gappsWrapperArgs+=(
63 --prefix GDK_BACKEND : x11
64 )
65 '';
66
67 meta = {
68 description = "Doom editor";
69 homepage = "http://slade.mancubus.net/";
70 license = lib.licenses.gpl2Only; # https://github.com/sirjuddington/SLADE/issues/1754
71 platforms = lib.platforms.linux;
72 maintainers = with lib.maintainers; [ abbradar ];
73 };
74}