nixpkgs/pkgs/games/doom-ports/slade/git.nix
Sergei Trofimovich 6f1fe4a256 sladeUnstable: unstable-2022-08-15 -> unstable-2023-09-30
While at it added unstable git updater.

THe main change is build fix against gcc-13.
2023-10-06 13:59:41 +01:00

74 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, which
, zip
, wxGTK
, gtk3
, sfml
, fluidsynth
, curl
, freeimage
, ftgl
, glew
, lua
, mpg123
, unstableGitUpdater
}:
stdenv.mkDerivation rec {
pname = "slade";
version = "unstable-2023-09-30";
src = fetchFromGitHub {
owner = "sirjuddington";
repo = "SLADE";
rev = "d05af4bd3a9a655dfe17d02760bab3542cc0b909";
sha256 = "sha256-lzTSE0WH+4fOad9E/pL3LDc4L151W0hFEmD0zsS0gpQ=";
};
postPatch = lib.optionalString (!stdenv.hostPlatform.isx86) ''
sed -i '/-msse/d' src/CMakeLists.txt
'';
nativeBuildInputs = [
cmake
pkg-config
which
zip
];
buildInputs = [
wxGTK
gtk3
sfml
fluidsynth
curl
freeimage
ftgl
glew
lua
mpg123
];
cmakeFlags = [
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
];
env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
passthru.updateScript = unstableGitUpdater {
url = "https://github.com/sirjuddington/SLADE.git";
};
meta = with lib; {
description = "Doom editor";
homepage = "http://slade.mancubus.net/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ ertes ];
};
}