quartz-wm: 1.3.1 -> 1.3.2; modernize (#435463)

jopejoe1 eab6ae1b eaca18bd

Changed files
+33 -63
pkgs
+33 -25
pkgs/servers/x11/quartz-wm/default.nix
···
{
lib,
stdenv,
-
fetchurl,
-
xorg,
+
fetchgit,
+
autoreconfHook,
pixman,
pkg-config,
+
util-macros,
+
libXinerama,
+
libAppleWM,
+
xorgproto,
+
libXrandr,
+
libXext,
}:
-
let
-
version = "1.3.1";
-
in
-
stdenv.mkDerivation {
+
stdenv.mkDerivation (finalAttrs: {
pname = "quartz-wm";
-
inherit version;
-
src = fetchurl {
-
url = "http://xquartz-dl.macosforge.org/src/quartz-wm-${version}.tar.xz";
-
sha256 = "1j8zd3p7rhay1s3sxq6anw78k5s59mx44xpqla2ianl62346a5g9";
+
version = "1.3.2";
+
+
src = fetchgit {
+
url = "https://gitlab.freedesktop.org/xorg/app/quartz-wm.git";
+
tag = "quartz-wm-${finalAttrs.version}";
+
hash = "sha256-1+KZNeR4Gq2uWBHTN53PTITHuly1Z4buR+grzdVNwhs=";
};
-
patches = [
-
./no_title_crash.patch
-
./extern-patch.patch
-
];
+
configureFlags = [ "--enable-xplugin-dock-support" ];
-
nativeBuildInputs = [ pkg-config ];
+
nativeBuildInputs = [
+
autoreconfHook
+
pkg-config
+
util-macros
+
];
buildInputs = [
-
xorg.libXinerama
-
xorg.libAppleWM
-
xorg.xorgproto
-
xorg.libXrandr
-
xorg.libXext
+
libXinerama
+
libAppleWM
+
xorgproto
+
libXrandr
+
libXext
pixman
];
-
meta = with lib; {
-
license = licenses.apple-psl20;
-
platforms = platforms.darwin;
-
maintainers = with maintainers; [ matthewbauer ];
+
+
meta = {
+
license = lib.licenses.apple-psl20;
+
platforms = lib.platforms.darwin;
+
maintainers = with lib.maintainers; [ matthewbauer ];
+
mainProgram = "quartz-wm";
};
-
}
+
})
-13
pkgs/servers/x11/quartz-wm/extern-patch.patch
···
-
diff --git a/src/x-list.h b/src/x-list.h
-
index bb85c02..059c88b 100644
-
--- a/src/x-list.h
-
+++ b/src/x-list.h
-
@@ -39,7 +39,7 @@
-
#endif
-
-
#ifndef X_EXTERN
-
-# define X_EXTERN __private_extern__
-
+# define X_EXTERN extern
-
#endif
-
-
X_EXTERN void X_PFX (list_free_1) (x_list *node);
-25
pkgs/servers/x11/quartz-wm/no_title_crash.patch
···
-
commit c28527b1340c51f2b492a31e49127106cebbfc5d
-
Author: Jeremy Huddleston <jeremyhu@apple.com>
-
Date: Fri Jun 1 10:38:37 2012 -0700
-
-
Fix a crash when minimizing windows without titles
-
-
<rdar://problem/11575791>
-
-
Regression-from: 21f210c923aa5d79400ce46275084f2636c92bd9
-
-
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-
-
diff --git a/src/x-window.m b/src/x-window.m
-
index a210c6a..e3b9066 100644
-
--- a/src/x-window.m
-
+++ b/src/x-window.m
-
@@ -2139,7 +2139,7 @@ - (void) do_collapse
-
if (wid == XP_NULL_NATIVE_WINDOW_ID)
-
return;
-
-
- title_c = strdup([_title UTF8String]);
-
+ title_c = strdup([[self title] UTF8String]);
-
assert(title_c);
-
-
err = qwm_dock_minimize_item_with_title_async (wid, title_c);