about summary refs log tree commit diff
path: root/pkgs/development/libraries/tkimg/default.nix
blob: 8b66e195d5a5ed9ffbd36fbbc730bebf12b96d82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, lib, fetchsvn, tcl, tcllib, tk, xorg, darwin }:

tcl.mkTclDerivation rec {
  pname = "tkimg";
  version = "623";

  src = fetchsvn {
    url = "svn://svn.code.sf.net/p/tkimg/code/trunk";
    rev = version;
    sha256 = "sha256-6GlkqYxXmMGjiJTZS2fQNVSimcKc1BZ/lvzvtkhty+o=";
  };

  configureFlags = [
    "--with-tcl=${tcl}/lib"
    "--with-tk=${tk}/lib"
    "--with-tkinclude=${tk.dev}/include"
  ];

  buildInputs = [ xorg.libX11 tcllib ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
    Cocoa
  ]);

  meta = {
    homepage = "https://sourceforge.net/projects/tkimg/";
    description = "Img package adds several image formats to Tcl/Tk";
    maintainers = with lib.maintainers; [ matthewcroughan ];
    license = lib.licenses.bsd3;
    platforms = lib.platforms.unix;
  };
}