mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
6f1fe4a256
While at it added unstable git updater. THe main change is build fix against gcc-13.
74 lines
1.2 KiB
Nix
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 ];
|
|
};
|
|
}
|