1{ stdenv, lib, fetchsvn, tcl, tcllib, tk, xorg, darwin }:
2
3tcl.mkTclDerivation rec {
4 pname = "tkimg";
5 version = "623";
6
7 src = fetchsvn {
8 url = "svn://svn.code.sf.net/p/tkimg/code/trunk";
9 rev = version;
10 sha256 = "sha256-6GlkqYxXmMGjiJTZS2fQNVSimcKc1BZ/lvzvtkhty+o=";
11 };
12
13 configureFlags = [
14 "--with-tcl=${tcl}/lib"
15 "--with-tk=${tk}/lib"
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/";
25 description = "Img package adds several image formats to Tcl/Tk";
26 maintainers = with lib.maintainers; [ matthewcroughan ];
27 license = lib.licenses.bsd3;
28 platforms = lib.platforms.unix;
29 };
30}