From 1a64deeb894dc95e2645a75771732c6cc53a79ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 4 Oct 2023 01:35:06 +0200 Subject: Squash changes containing private information There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository --- .../pkgs/perl-ical-parser-html/default.nix | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 flakes/mypackages/pkgs/perl-ical-parser-html/default.nix (limited to 'flakes/mypackages/pkgs/perl-ical-parser-html/default.nix') diff --git a/flakes/mypackages/pkgs/perl-ical-parser-html/default.nix b/flakes/mypackages/pkgs/perl-ical-parser-html/default.nix new file mode 100644 index 0000000..96e9abc --- /dev/null +++ b/flakes/mypackages/pkgs/perl-ical-parser-html/default.nix @@ -0,0 +1,48 @@ +{ perlPackages, fetchurl }: +let + TestXML = perlPackages.buildPerlPackage rec { + pname = "Test-XML"; + version = "0.08"; + src = fetchurl { + url = "mirror://cpan/authors/id/S/SE/SEMANTICO/Test-XML-0.08.tar.gz"; + sha256 = "sha256-61TMI83shg062KyKaXy/A40N7JUimRLZdcMBiQyoPuI="; + }; + propagatedBuildInputs = with perlPackages; [ + ModuleBuild XMLSemanticDiff XMLParser + ]; + }; + iCalParserSAX = perlPackages.buildPerlPackage rec { + pname = "iCal-Parser-SAX"; + version = "1.09"; + src = fetchurl { + url = "mirror://cpan/authors/id/R/RF/RFRANKEL/iCal-Parser-SAX-1.09.tar.gz"; + sha256 = "sha256-fouAjQ+MTUgwZ/j3dIarOK0rVBZcZy6aOJFor4pLql0="; + }; + propagatedBuildInputs = with perlPackages; [ + ModuleBuild DateTime IOString XMLSAXBase XMLSAXWriter iCalParser + LWPUserAgent + ]; + buildInputs = [ TestXML ]; + doCheck = false; + }; +in +perlPackages.buildPerlPackage rec { + pname = "iCal-Parser-HTML"; + version = "1.07"; + src = fetchurl { + url = "mirror://cpan/authors/id/R/RF/RFRANKEL/${pname}-${version}.tar.gz"; + sha256 = "sha256-cxRS2M6aVrCtAXHQae0Y6EtEfGnGx41UuB7z442NSrU="; + }; + patchPhase = '' + sed -i -e "s/qw(week month year)/(qw(week month year))/" lib/iCal/Parser/HTML.pm + ''; + doCheck = false; + postInstall = '' + mkdir -p $out/bin + cp scripts/ical2html $out/bin + chmod +x $out/bin/ical2html + ''; + propagatedBuildInputs = with perlPackages; [ + ModuleBuild XMLLibXML XMLLibXSLT iCalParser iCalParserSAX + ]; +} -- cgit v1.2.3