2021-11-07 20:29:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2021-05-14 03:49:07 +00:00
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2022-10-28 15:12:13 +00:00
|
|
|
, which
|
|
|
|
, zip
|
2021-05-14 03:49:07 +00:00
|
|
|
, wxGTK
|
2022-10-28 15:12:13 +00:00
|
|
|
, gtk3
|
2021-05-14 03:49:07 +00:00
|
|
|
, sfml
|
|
|
|
, fluidsynth
|
|
|
|
, curl
|
|
|
|
, freeimage
|
|
|
|
, ftgl
|
|
|
|
, glew
|
|
|
|
, lua
|
|
|
|
, mpg123
|
|
|
|
}:
|
2018-02-03 23:06:36 +00:00
|
|
|
|
2022-10-28 15:12:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 20:29:51 +00:00
|
|
|
pname = "slade";
|
2022-10-28 15:12:13 +00:00
|
|
|
version = "unstable-2022-08-15";
|
2018-02-03 23:06:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sirjuddington";
|
|
|
|
repo = "SLADE";
|
2022-10-28 15:12:13 +00:00
|
|
|
rev = "1a0d25eec54f9ca2eb3667676d93fb0b6b6aea26";
|
|
|
|
sha256 = "sha256-mtaJr4HJbp2UnzwaLq12V69DqPYDmSNqMGiuPpMlznI=";
|
2018-02-03 23:06:36 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 15:12:13 +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
|
|
|
|
];
|
|
|
|
|
2021-05-14 03:49:07 +00:00
|
|
|
cmakeFlags = [
|
2022-10-28 15:12:13 +00:00
|
|
|
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
|
2021-05-14 03:49:07 +00:00
|
|
|
];
|
2022-10-28 15:12:13 +00:00
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
2018-02-03 23:06:36 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-02-03 23:06:36 +00:00
|
|
|
description = "Doom editor";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://slade.mancubus.net/";
|
2018-02-03 23:06:36 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-10-28 15:12:13 +00:00
|
|
|
platforms = platforms.linux;
|
2018-02-03 23:06:36 +00:00
|
|
|
maintainers = with maintainers; [ ertes ];
|
|
|
|
};
|
|
|
|
}
|