diff --git a/pkgs/development/libraries/tkimg/default.nix b/pkgs/development/libraries/tkimg/default.nix new file mode 100644 index 000000000000..094a6b5dda3d --- /dev/null +++ b/pkgs/development/libraries/tkimg/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchsvn, tcl, tcllib, tk, xorg }: + +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 ]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5395291cf300..1105149300a5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24046,6 +24046,8 @@ with pkgs; tk-8_6 = callPackage ../development/libraries/tk/8.6.nix { }; tk-8_5 = callPackage ../development/libraries/tk/8.5.nix { tcl = tcl-8_5; }; + tkimg = callPackage ../development/libraries/tkimg { }; + tkrzw = callPackage ../development/libraries/tkrzw { }; tl-expected = callPackage ../development/libraries/tl-expected { };