From 2f7a563295a81f90763f9e5db478eb8751df166e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Fri, 20 Oct 2023 12:06:44 +0200 Subject: [PATCH] perlPackages.GraphViz2: Init at 2.67 --- pkgs/top-level/perl-packages.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 09a7e038eb2b..9e4dbdaf9bf2 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -10732,7 +10732,29 @@ with self; { meta = { description = "Perl interface to the GraphViz graphing tool"; - license = with lib.licenses; [artistic2 ]; + license = with lib.licenses; [ artistic2 ]; + }; + }; + + GraphViz2 = buildPerlPackage { + pname = "GraphViz2"; + version = "2.67"; + src = fetchurl { + url = "mirror://cpan/authors/id/E/ET/ETJ/GraphViz2-2.67.tar.gz"; + hash = "sha256-h8hcbt/86k+W5rSAD2+VEq6rGeuNOzSDAachMxvLhYA="; + }; + + # XXX: It'd be nicer if `GraphViz.pm' could record the path to graphviz. + buildInputs = [ pkgs.graphviz TestPod Moo IPCRun3 TypeTiny TestSnapshot Graph ]; + propagatedBuildInputs = [ FileWhich IPCRun ParseRecDescent XMLTwig XMLXPath DataSectionSimple ]; + + # needed for fontconfig tests + HOME = "/build"; + FONTCONFIG_PATH = "${lib.getOutput "out" pkgs.fontconfig}/etc/fonts"; + + meta = { + description = "Perl interface to the GraphViz graphing tool"; + license = with lib.licenses; [ artistic2 ]; }; };