tk: use aqua backend on darwin
Most users don’t have xquartz, so let’s use the default window system for macOS.
This commit is contained in:
parent
11a6d01db6
commit
82b8393bc4
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, src, pkgconfig, tcl, libXft, fontconfig, patches ? [], ... }:
|
{ stdenv, lib, src, pkgconfig, tcl, libXft, fontconfig, patches ? []
|
||||||
|
, enableAqua ? stdenv.isDarwin, darwin
|
||||||
|
, ... }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "tk-${tcl.version}";
|
name = "tk-${tcl.version}";
|
||||||
@ -21,15 +23,14 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-tcl=${tcl}/lib"
|
"--with-tcl=${tcl}/lib"
|
||||||
];
|
] ++ stdenv.lib.optional enableAqua "--enable-aqua";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ ]
|
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fontconfig;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ tcl libXft ];
|
propagatedBuildInputs = [ tcl libXft ];
|
||||||
|
buildInputs = lib.optional enableAqua (with darwin; with apple_sdk.frameworks; [
|
||||||
NIX_CFLAGS_LINK = if stdenv.isDarwin then "-lfontconfig" else null;
|
Cocoa cf-private
|
||||||
|
]);
|
||||||
|
|
||||||
doCheck = false; # fails. can't find itself
|
doCheck = false; # fails. can't find itself
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user