2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, which
|
|
|
|
, zip
|
|
|
|
, wxGTK
|
|
|
|
, gtk3
|
|
|
|
, sfml
|
|
|
|
, fluidsynth
|
|
|
|
, curl
|
|
|
|
, freeimage
|
|
|
|
, ftgl
|
|
|
|
, glew
|
|
|
|
, lua
|
|
|
|
, mpg123
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "slade";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "3.2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sirjuddington";
|
|
|
|
repo = "SLADE";
|
|
|
|
rev = version;
|
2023-04-12 12:48:02 +00:00
|
|
|
sha256 = "sha256-UAxGNJ66o5wO8i/g0CgY395uHfJRJSxTlXlBbhgDAbM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Doom editor";
|
|
|
|
homepage = "http://slade.mancubus.net/";
|
2022-10-30 15:09:59 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|