slade, sladeUnstable: Fix and update (#322061)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, curl
|
||||
, expat
|
||||
, fetchFromGitHub
|
||||
, gst_all_1
|
||||
@@ -70,6 +71,7 @@ stdenv.mkDerivation rec {
|
||||
zlib
|
||||
pcre2
|
||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
curl
|
||||
gtk3
|
||||
libSM
|
||||
libXinerama
|
||||
@@ -102,6 +104,7 @@ stdenv.mkDerivation rec {
|
||||
"--with-nanosvg"
|
||||
"--disable-rpath"
|
||||
"--enable-repro-build"
|
||||
"--enable-webrequest"
|
||||
(if compat28 then "--enable-compat28" else "--disable-compat28")
|
||||
(if compat30 then "--enable-compat30" else "--disable-compat30")
|
||||
] ++ lib.optional unicode "--enable-unicode"
|
||||
@@ -109,6 +112,9 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"--with-osx_cocoa"
|
||||
"--with-libiconv"
|
||||
"--with-urlsession" # for wxWebRequest
|
||||
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
"--with-libcurl" # for wxWebRequest
|
||||
] ++ lib.optionals withWebKit [
|
||||
"--enable-webview"
|
||||
"--enable-webviewwebkit"
|
||||
|
||||
@@ -20,20 +20,15 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "slade";
|
||||
version = "3.2.5";
|
||||
version = "3.2.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sirjuddington";
|
||||
repo = "SLADE";
|
||||
rev = version;
|
||||
sha256 = "sha256-FBpf1YApwVpWSpUfa2LOrkS1Ef34sKCIZ6ic+Pczs14=";
|
||||
hash = "sha256-pcWmv1fnH18X/S8ljfHxaL1PjApo5jyM8W+WYn+/7zI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace dist/CMakeLists.txt \
|
||||
--replace "PK3_OUTPUT" "PK3_DESTINATION"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
@@ -57,7 +52,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
cmakeFlags = [
|
||||
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
|
||||
"-DBUILD_PK3=ON"
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
||||
@@ -71,7 +65,7 @@ stdenv.mkDerivation rec {
|
||||
meta = with lib; {
|
||||
description = "Doom editor";
|
||||
homepage = "http://slade.mancubus.net/";
|
||||
license = licenses.gpl2Plus;
|
||||
license = licenses.gpl2Only; # https://github.com/sirjuddington/SLADE/issues/1754
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
|
||||
@@ -15,29 +15,27 @@
|
||||
, glew
|
||||
, lua
|
||||
, mpg123
|
||||
, wrapGAppsHook3
|
||||
, unstableGitUpdater
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation {
|
||||
pname = "slade";
|
||||
version = "3.2.4-unstable-2023-09-30";
|
||||
version = "3.2.6-unstable-2024-11-26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sirjuddington";
|
||||
repo = "SLADE";
|
||||
rev = "d05af4bd3a9a655dfe17d02760bab3542cc0b909";
|
||||
sha256 = "sha256-lzTSE0WH+4fOad9E/pL3LDc4L151W0hFEmD0zsS0gpQ=";
|
||||
rev = "f8ca52edf98e649c6455f6cc32f7aa361e41babe";
|
||||
hash = "sha256-h43kYVLDxr1Z3vKJ+IZaDmvkerUdGJFLzJrPj0b2VUI=";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString (!stdenv.hostPlatform.isx86) ''
|
||||
sed -i '/-msse/d' src/CMakeLists.txt
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
which
|
||||
zip
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@@ -59,6 +57,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix GDK_BACKEND : x11
|
||||
)
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater {
|
||||
url = "https://github.com/sirjuddington/SLADE.git";
|
||||
};
|
||||
@@ -66,7 +70,7 @@ stdenv.mkDerivation rec {
|
||||
meta = with lib; {
|
||||
description = "Doom editor";
|
||||
homepage = "http://slade.mancubus.net/";
|
||||
license = licenses.gpl2Plus;
|
||||
license = licenses.gpl2Only; # https://github.com/sirjuddington/SLADE/issues/1754
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ertes ];
|
||||
};
|
||||
|
||||
@@ -16523,31 +16523,13 @@ with pkgs;
|
||||
enyo-launcher = libsForQt5.callPackage ../games/doom-ports/enyo-launcher { };
|
||||
|
||||
slade = callPackage ../games/doom-ports/slade {
|
||||
wxGTK = (wxGTK32.overrideAttrs {
|
||||
patches = [
|
||||
(fetchpatch { # required to run slade 3.2.4 on wxGTK 3.2.4, see PR #266945
|
||||
url = "https://github.com/wxWidgets/wxWidgets/commit/425d9455e8307c1267a79d47d77e3dafeb4d86de.patch";
|
||||
excludes = [ "docs/changes.txt" ];
|
||||
revert = true;
|
||||
hash = "sha256-6LOYLDLtVCHxNdHAWv3zhlCsljIpi//RJb9XVLGD5hM=";
|
||||
})
|
||||
];
|
||||
}).override {
|
||||
wxGTK = wxGTK32.override {
|
||||
withWebKit = true;
|
||||
};
|
||||
};
|
||||
|
||||
sladeUnstable = callPackage ../games/doom-ports/slade/git.nix {
|
||||
wxGTK = (wxGTK32.overrideAttrs {
|
||||
patches = [
|
||||
(fetchpatch { # required to run sladeUnstable unstable-2023-09-30 on wxGTK 3.2.4, see PR #266945
|
||||
url = "https://github.com/wxWidgets/wxWidgets/commit/425d9455e8307c1267a79d47d77e3dafeb4d86de.patch";
|
||||
excludes = [ "docs/changes.txt" ];
|
||||
revert = true;
|
||||
hash = "sha256-6LOYLDLtVCHxNdHAWv3zhlCsljIpi//RJb9XVLGD5hM=";
|
||||
})
|
||||
];
|
||||
}).override {
|
||||
wxGTK = wxGTK32.override {
|
||||
withWebKit = true;
|
||||
};
|
||||
};
|
||||
@@ -17862,14 +17844,7 @@ with pkgs;
|
||||
gplates = libsForQt5.callPackage ../applications/science/misc/gplates { };
|
||||
|
||||
golly = callPackage ../applications/science/misc/golly {
|
||||
wxGTK = wxGTK32.overrideAttrs (x: {
|
||||
configureFlags = x.configureFlags ++ [
|
||||
"--enable-webrequest"
|
||||
];
|
||||
buildInputs = x.buildInputs ++ [
|
||||
curl
|
||||
];
|
||||
});
|
||||
wxGTK = wxGTK32;
|
||||
};
|
||||
|
||||
megam = callPackage ../applications/science/misc/megam {
|
||||
|
||||
Reference in New Issue
Block a user