Merge pull request #312696 from eliandoran/darwin/tkimg

tkimg: fix build on darwin
This commit is contained in:
Weijia Wang 2024-05-19 01:29:39 +02:00 committed by GitHub
commit 60cc8055eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, fetchsvn, tcl, tcllib, tk, xorg }:
{ stdenv, lib, fetchsvn, tcl, tcllib, tk, xorg, darwin }:
tcl.mkTclDerivation rec {
pname = "tkimg";
@ -16,7 +16,9 @@ tcl.mkTclDerivation rec {
"--with-tkinclude=${tk.dev}/include"
];
buildInputs = [ xorg.libX11 tcllib ];
buildInputs = [ xorg.libX11 tcllib ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
Cocoa
]);
meta = {
homepage = "https://sourceforge.net/projects/tkimg/";