nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 79 lines 1.4 kB view raw
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 ftgl, 15 glew, 16 lua, 17 mpg123, 18 wrapGAppsHook3, 19 unstableGitUpdater, 20 libwebp, 21}: 22 23stdenv.mkDerivation { 24 pname = "slade"; 25 version = "3.2.7-unstable-2025-06-29"; 26 27 src = fetchFromGitHub { 28 owner = "sirjuddington"; 29 repo = "SLADE"; 30 rev = "c89e00707c79f7a1616a57414c5957dc773810e3"; 31 hash = "sha256-XjF2jgO28nU/DvuNLAubkUgVXvl8m6vQlKv6Byqfp6o="; 32 }; 33 34 nativeBuildInputs = [ 35 cmake 36 pkg-config 37 which 38 zip 39 wrapGAppsHook3 40 ]; 41 42 buildInputs = [ 43 wxGTK 44 gtk3 45 sfml_2 46 fluidsynth 47 curl 48 ftgl 49 glew 50 lua 51 mpg123 52 libwebp 53 ]; 54 55 cmakeFlags = [ 56 "-DwxWidgets_LIBRARIES=${wxGTK}/lib" 57 (lib.cmakeFeature "CL_WX_CONFIG" (lib.getExe' (lib.getDev wxGTK) "wx-config")) 58 ]; 59 60 env.NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 61 62 preFixup = '' 63 gappsWrapperArgs+=( 64 --prefix GDK_BACKEND : x11 65 ) 66 ''; 67 68 passthru.updateScript = unstableGitUpdater { 69 url = "https://github.com/sirjuddington/SLADE.git"; 70 }; 71 72 meta = { 73 description = "Doom editor"; 74 homepage = "http://slade.mancubus.net/"; 75 license = lib.licenses.gpl2Only; # https://github.com/sirjuddington/SLADE/issues/1754 76 platforms = lib.platforms.linux; 77 maintainers = with lib.maintainers; [ ertes ]; 78 }; 79}