depot/third_party/nixpkgs/pkgs/development/libraries/tkimg/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

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