2024-06-05 15:53:02 +00:00
|
|
|
{ stdenv, lib, fetchsvn, tcl, tcllib, tk, xorg, darwin }:
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ xorg.libX11 tcllib ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
|
|
Cocoa
|
|
|
|
]);
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://sourceforge.net/projects/tkimg/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Img package adds several image formats to Tcl/Tk";
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with lib.maintainers; [ matthewcroughan ];
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|