xorg.xorgserver: Use substitute in patches instead of postPatch
This commit is contained in:
parent
9ae8af51c5
commit
65601cbb21
1 changed files with 5 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ abiCompat ? null,
|
{ abiCompat ? null,
|
||||||
callPackage,
|
callPackage,
|
||||||
lib, stdenv, makeWrapper, fetchurl, fetchpatch, fetchFromGitLab, buildPackages,
|
lib, stdenv, makeWrapper, fetchurl, fetchpatch, fetchFromGitLab, buildPackages, substitute,
|
||||||
automake, autoconf, libiconv, libtool, intltool,
|
automake, autoconf, libiconv, libtool, intltool,
|
||||||
freetype, tradcpp, fontconfig, meson, ninja, ed, fontforge,
|
freetype, tradcpp, fontconfig, meson, ninja, ed, fontforge,
|
||||||
libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm, netbsd,
|
libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm, netbsd,
|
||||||
|
@ -764,14 +764,12 @@ self: super:
|
||||||
name = "revert-fb-changes-2.patch";
|
name = "revert-fb-changes-2.patch";
|
||||||
})
|
})
|
||||||
./darwin/bundle_main.patch
|
./darwin/bundle_main.patch
|
||||||
./darwin/stub.patch
|
(substitute {
|
||||||
|
src = ./darwin/stub.patch;
|
||||||
|
replacements = ["--subst-var-by" "XQUARTZ_APP" "${placeholder "out"}/Applications/XQuartz.app"];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = attrs.postPatch + ''
|
|
||||||
substituteInPlace hw/xquartz/mach-startup/stub.c \
|
|
||||||
--subst-var-by XQUARTZ_APP "$out/Applications/XQuartz.app"
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
# note: --enable-xquartz is auto
|
# note: --enable-xquartz is auto
|
||||||
"CPPFLAGS=-I${./darwin/dri}"
|
"CPPFLAGS=-I${./darwin/dri}"
|
||||||
|
|
Loading…
Reference in a new issue