Merge pull request #175775 from willcohen/tclptk

perlPackages.TclpTk: init at 1.09
This commit is contained in:
Stig 2022-06-07 00:33:36 +02:00 committed by GitHub
commit f46e56db16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 68 additions and 2 deletions

View file

@ -22,6 +22,6 @@ tcl.mkTclDerivation rec {
description = "High-level widget set for Tcl/Tk";
maintainers = with lib.maintainers; [ agbrooks ];
license = lib.licenses.tcltk;
platforms = lib.platforms.linux;
platforms = lib.platforms.unix;
};
}

View file

@ -6,7 +6,7 @@
be almost as much code as the function itself. */
{ config
, stdenv, lib, buildPackages, pkgs
, stdenv, lib, buildPackages, pkgs, darwin
, fetchurl, fetchgit, fetchpatch, fetchFromGitHub, fetchFromGitLab
, perl, overrides, buildPerl, shortenPerlShebang
, nixosTests
@ -21045,6 +21045,57 @@ let
};
};
Tcl = buildPerlPackage {
pname = "Tcl";
version = "1.27";
src = fetchurl {
url = "mirror://cpan/authors/id/V/VK/VKON/Tcl-1.27.tar.gz";
sha256 = "sha256-+DhYd6Sp7Z89OQPS0PfNcPrDzmgyxg9gCmghzuP7WHI=";
};
propagatedBuildInputs = [
pkgs.bwidget
pkgs.tcl
pkgs.tix
pkgs.tk
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreServices ];
makeMakerFlags = lib.optionalString stdenv.isLinux
"--tclsh=${pkgs.tcl}/bin/tclsh --nousestubs";
meta = {
description = "Tcl extension module for perl";
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
};
TclpTk = buildPerlPackage {
pname = "Tcl-pTk";
version = "1.09";
src = fetchurl {
url = "mirror://cpan/authors/id/C/CA/CAC/Tcl-pTk-1.09.tar.gz";
sha256 = "sha256-LR+YBlKS9+W7mBBy9/EkAOjxGVVe4MC5zToPr/pXl24=";
};
propagatedBuildInputs = [
ClassISA
SubName
Tcl
TestDeep
];
buildPhase = ''
perl Makefile.PL --tclsh "${pkgs.tk.tcl}/bin/tclsh" INSTALL_BASE=$out --no-test-for-tk
'';
postInstall = ''
mkdir -p $out/lib/perl5/site_perl
mv $out/lib/perl5/Tcl $out/lib/perl5/site_perl/
mv $out/lib/perl5/auto $out/lib/perl5/site_perl/
'' + lib.optionalString stdenv.isDarwin ''
mv $out/lib/perl5/darwin-thread-multi-2level $out/lib/perl5/site_perl/
'';
meta = {
description = "Interface to Tcl/Tk with Perl/Tk compatible syntax";
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
};
TemplatePluginAutoformat = buildPerlPackage {
pname = "Template-Plugin-Autoformat";
version = "2.77";
@ -24167,6 +24218,21 @@ let
};
};
TkToolBar = buildPerlPackage {
pname = "Tk-ToolBar";
version = "0.12";
src = fetchurl {
url = "mirror://cpan/authors/id/A/AS/ASB/Tk-ToolBar-0.12.tar.gz";
sha256 = "sha256-Rj4oTsRxN+fEJclpGwKo3sXOJytY6h9jWa6AQaI53Q8=";
};
makeMakerFlags = "X11INC=${pkgs.xorg.libX11.dev}/include X11LIB=${pkgs.xorg.libX11.out}/lib";
buildInputs = [ Tk ];
doCheck = false; # Expects working X11.
meta = {
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
};
TreeDAGNode = buildPerlPackage {
pname = "Tree-DAG_Node";
version = "1.31";