Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #312696 from eliandoran/darwin/tkimg

tkimg: fix build on darwin

authored by Weijia Wang and committed by GitHub 60cc8055 3dfa6c67

+4 -2
+4 -2
pkgs/development/libraries/tkimg/default.nix
··· 1 - { lib, fetchsvn, tcl, tcllib, tk, xorg }: 2 3 tcl.mkTclDerivation rec { 4 pname = "tkimg"; ··· 16 "--with-tkinclude=${tk.dev}/include" 17 ]; 18 19 - buildInputs = [ xorg.libX11 tcllib ]; 20 21 meta = { 22 homepage = "https://sourceforge.net/projects/tkimg/";
··· 1 + { stdenv, lib, fetchsvn, tcl, tcllib, tk, xorg, darwin }: 2 3 tcl.mkTclDerivation rec { 4 pname = "tkimg"; ··· 16 "--with-tkinclude=${tk.dev}/include" 17 ]; 18 19 + buildInputs = [ xorg.libX11 tcllib ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ 20 + Cocoa 21 + ]); 22 23 meta = { 24 homepage = "https://sourceforge.net/projects/tkimg/";