depot/third_party/nixpkgs/pkgs/development/libraries/tkimg/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

30 lines
818 B
Nix

{ 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 = "The Img package adds several image formats to Tcl/Tk";
maintainers = with lib.maintainers; [ matthewcroughan ];
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
};
}