From a42856556f46fb37f0cd452629b3a2f24f2e5901 Mon Sep 17 00:00:00 2001 From: volth Date: Wed, 6 Feb 2019 16:53:18 +0000 Subject: [PATCH 1/4] [cpan2nix] perlPackages.GeoIP2: init at 2.006001 dependencies: perlPackages.DataIEEE754: init at 0.02 perlPackages.DataPrinter: init at 0.40 perlPackages.MaxMindDBCommon: init at 0.040001 perlPackages.MaxMindDBReader: init at 1.000013 perlPackages.TestBits: init at 0.02 --- pkgs/top-level/perl-packages.nix | 81 ++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 24ff673b8fa..4eac36563da 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -3266,6 +3266,19 @@ let }; }; + DataIEEE754 = buildPerlPackage { + name = "Data-IEEE754-0.02"; + src = fetchurl { + url = mirror://cpan/authors/id/M/MA/MAXMIND/Data-IEEE754-0.02.tar.gz; + sha256 = "07b73dlxd0qmxgkkrpa2xr61y18v3adlf1qgnl9k90kj8q9spx66"; + }; + buildInputs = [ TestBits ]; + meta = { + description = "Pack and unpack big-endian IEEE754 floats and doubles"; + license = with stdenv.lib.licenses; [ artistic2 ]; + }; + }; + DataInteger = buildPerlModule rec { name = "Data-Integer-0.006"; src = fetchurl { @@ -3334,6 +3347,19 @@ let }; }; + DataPrinter = buildPerlPackage { + name = "Data-Printer-0.40"; + src = fetchurl { + url = mirror://cpan/authors/id/G/GA/GARU/Data-Printer-0.40.tar.gz; + sha256 = "0njjh8zp5afc4602jrnmg89icj7gfsil6i955ypcqxc2gl830sb0"; + }; + propagatedBuildInputs = [ ClonePP FileHomeDir PackageStash SortNaturally ]; + meta = { + description = "colored pretty-print of Perl data structures and objects"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; + }; + DataSection = buildPerlPackage rec { name = "Data-Section-0.200007"; src = fetchurl { @@ -6215,6 +6241,20 @@ let doCheck = false; # seems to access the network }; + GeoIP2 = buildPerlPackage { + name = "GeoIP2-2.006001"; + src = fetchurl { + url = mirror://cpan/authors/id/M/MA/MAXMIND/GeoIP2-2.006001.tar.gz; + sha256 = "05pb8bj2dkfcn8z56f8dcs76x65xcn05fywm7vifmfh39qgkmm62"; + }; + propagatedBuildInputs = [ JSONMaybeXS LWPProtocolHttps MaxMindDBReader ParamsValidate Throwable ]; + buildInputs = [ PathClass TestFatal TestNumberDelta ]; + meta = { + description = "Perl API for MaxMind's GeoIP2 web services and databases"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; + }; + GetoptArgvFile = buildPerlPackage rec { name = "Getopt-ArgvFile-1.11"; src = fetchurl { @@ -9156,6 +9196,33 @@ let }; }; + MaxMindDBCommon = buildPerlPackage { + name = "MaxMind-DB-Common-0.040001"; + src = fetchurl { + url = mirror://cpan/authors/id/M/MA/MAXMIND/MaxMind-DB-Common-0.040001.tar.gz; + sha256 = "1mqvnabskhyvi2f10f602gisfk39ws51ky55lixd0033sd5xzikb"; + }; + propagatedBuildInputs = [ DataDumperConcise DateTime ListAllUtils MooXStrictConstructor ]; + meta = { + description = "Code shared by the MaxMind DB reader and writer modules"; + license = with stdenv.lib.licenses; [ artistic2 ]; + }; + }; + + MaxMindDBReader = buildPerlPackage { + name = "MaxMind-DB-Reader-1.000013"; + src = fetchurl { + url = mirror://cpan/authors/id/M/MA/MAXMIND/MaxMind-DB-Reader-1.000013.tar.gz; + sha256 = "0w7dmfhpibazrh75bdr7vmpji83fzldsy0zjvhg3cwadr4f35kmq"; + }; + propagatedBuildInputs = [ DataIEEE754 DataPrinter DataValidateIP MaxMindDBCommon ]; + buildInputs = [ PathClass TestBits TestFatal TestNumberDelta TestRequires ]; + meta = { + description = "Read MaxMind DB files and look up IP addresses"; + license = with stdenv.lib.licenses; [ artistic2 ]; + }; + }; + Memoize = buildPerlPackage { name = "Memoize-1.03"; src = fetchurl { @@ -14567,6 +14634,20 @@ let buildInputs = [ AlgorithmDiff TextDiff ]; }; + TestBits = buildPerlPackage { + name = "Test-Bits-0.02"; + src = fetchurl { + url = mirror://cpan/authors/id/D/DR/DROLSKY/Test-Bits-0.02.tar.gz; + sha256 = "1hqbvqlkj3k9ys4zq3f1fl1y6crni8r0ynan673f49rs91b6z0m9"; + }; + propagatedBuildInputs = [ ListAllUtils ]; + buildInputs = [ TestFatal ]; + meta = { + description = "Provides a bits_is() subroutine for testing binary data"; + license = with stdenv.lib.licenses; [ artistic2 ]; + }; + }; + TestCheckDeps = buildPerlPackage rec { name = "Test-CheckDeps-0.010"; src = fetchurl { From 6e6e78e2bfa50c6d0376d6ee974e98de8b5d653f Mon Sep 17 00:00:00 2001 From: volth Date: Wed, 6 Feb 2019 16:53:18 +0000 Subject: [PATCH 2/4] [cpan2nix] perlPackages.MaxMindDBReaderXS: init at 1.000007 dependencies: perlPackages.MathInt128: init at 0.22 perlPackages.MathInt64: init at 0.54 perlPackages.NetWorks: init at 0.22 --- pkgs/top-level/perl-packages.nix | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 4eac36563da..f7348fd2e7c 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -9130,6 +9130,31 @@ let propagatedBuildInputs = [ ClassAccessor ParamsValidate ]; }; + MathInt128 = buildPerlPackage { + name = "Math-Int128-0.22"; + src = fetchurl { + url = mirror://cpan/authors/id/S/SA/SALVA/Math-Int128-0.22.tar.gz; + sha256 = "1g0ra7ldv4fz3kqqg45dlrfavi2abfmlhf0py5ank1jk2x0clc56"; + }; + propagatedBuildInputs = [ MathInt64 ]; + meta = { + description = "Manipulate 128 bits integers in Perl"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; + }; + + MathInt64 = buildPerlPackage { + name = "Math-Int64-0.54"; + src = fetchurl { + url = mirror://cpan/authors/id/S/SA/SALVA/Math-Int64-0.54.tar.gz; + sha256 = "0lfkc0cry65lnsi28gjyz2kvdkanbhhpc0pyrswsczj3k3k53z6w"; + }; + meta = { + description = "Manipulate 64 bits integers in Perl"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; + }; + MathPlanePath = buildPerlPackage rec { name = "Math-PlanePath-126"; src = fetchurl { @@ -9223,6 +9248,20 @@ let }; }; + MaxMindDBReaderXS = buildPerlModule { + name = "MaxMind-DB-Reader-XS-1.000007"; + src = fetchurl { + url = mirror://cpan/authors/id/M/MA/MAXMIND/MaxMind-DB-Reader-XS-1.000007.tar.gz; + sha256 = "1wg1x1pqamapfhn6rbffqipncgs15k99q34agdamv76i6782ny8r"; + }; + propagatedBuildInputs = [ MathInt128 MaxMindDBReader ]; + buildInputs = [ NetWorks PathClass TestFatal TestNumberDelta TestRequires ]; + meta = { + description = "Fast XS implementation of MaxMind DB reader"; + license = with stdenv.lib.licenses; [ artistic2 ]; + }; + }; + Memoize = buildPerlPackage { name = "Memoize-1.03"; src = fetchurl { @@ -11307,6 +11346,20 @@ let }; }; + NetWorks = buildPerlPackage { + name = "Net-Works-0.22"; + src = fetchurl { + url = mirror://cpan/authors/id/M/MA/MAXMIND/Net-Works-0.22.tar.gz; + sha256 = "1zz91vn1kdxljnlwllf4dzdsm4v6pja5694vf8l4w66azcyv5j8a"; + }; + propagatedBuildInputs = [ ListAllUtils MathInt128 Moo namespaceautoclean ]; + buildInputs = [ TestFatal ]; + meta = { + description = "Sane APIs for IP addresses and networks"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; + }; + NumberBytesHuman = buildPerlPackage rec { name = "Number-Bytes-Human-0.11"; src = fetchurl { From edd58509e71f152f87dbd29718898fd83e9b3f35 Mon Sep 17 00:00:00 2001 From: volth Date: Wed, 6 Feb 2019 16:53:20 +0000 Subject: [PATCH 3/4] [cpan2nix] perlPackages.MaxMindDBWriter: init at 0.300003 dependencies: perlPackages.DevelRefcount: init at 0.10 --- pkgs/top-level/perl-packages.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index f7348fd2e7c..6ed2d75c6b2 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -3938,6 +3938,19 @@ let }; }; + DevelRefcount = buildPerlModule { + name = "Devel-Refcount-0.10"; + src = fetchurl { + url = mirror://cpan/authors/id/P/PE/PEVANS/Devel-Refcount-0.10.tar.gz; + sha256 = "0jnaraqkigyinhwz4nqk1ndq7ssjizr98nd1dd183a6icdlx8m5n"; + }; + buildInputs = [ TestFatal ]; + meta = { + description = "obtain the REFCNT value of a referent"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; + }; + DevelPPPort = buildPerlPackage rec { name = "Devel-PPPort-3.43"; src = fetchurl { @@ -9262,6 +9275,20 @@ let }; }; + MaxMindDBWriter = buildPerlModule { + name = "MaxMind-DB-Writer-0.300003"; + src = fetchurl { + url = mirror://cpan/authors/id/M/MA/MAXMIND/MaxMind-DB-Writer-0.300003.tar.gz; + sha256 = "0gpbrlmxjl45k0wg5v9ghw415hd0fns9fk8ncxzlfyjzjsxgalxs"; + }; + propagatedBuildInputs = [ DigestSHA1 MaxMindDBReader MooseXParamsValidate MooseXStrictConstructor NetWorks SerealDecoder SerealEncoder ]; + buildInputs = [ DevelRefcount JSON TestBits TestDeep TestFatal TestHexDifferences TestRequires TestWarnings ]; + meta = { + description = "Create MaxMind DB database files"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; + }; + Memoize = buildPerlPackage { name = "Memoize-1.03"; src = fetchurl { From 03f97671068a4046aa2bf86c545d252ef32f2bfb Mon Sep 17 00:00:00 2001 From: volth Date: Thu, 7 Feb 2019 00:15:46 +0000 Subject: [PATCH 4/4] perlPackages.{MaxMindDBReaderXS,MaxMindDBWriter}: fix build --- pkgs/top-level/perl-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 6ed2d75c6b2..46c45d1d8d8 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -9267,7 +9267,7 @@ let url = mirror://cpan/authors/id/M/MA/MAXMIND/MaxMind-DB-Reader-XS-1.000007.tar.gz; sha256 = "1wg1x1pqamapfhn6rbffqipncgs15k99q34agdamv76i6782ny8r"; }; - propagatedBuildInputs = [ MathInt128 MaxMindDBReader ]; + propagatedBuildInputs = [ MathInt128 MaxMindDBReader pkgs.libmaxminddb ]; buildInputs = [ NetWorks PathClass TestFatal TestNumberDelta TestRequires ]; meta = { description = "Fast XS implementation of MaxMind DB reader"; @@ -9283,6 +9283,7 @@ let }; propagatedBuildInputs = [ DigestSHA1 MaxMindDBReader MooseXParamsValidate MooseXStrictConstructor NetWorks SerealDecoder SerealEncoder ]; buildInputs = [ DevelRefcount JSON TestBits TestDeep TestFatal TestHexDifferences TestRequires TestWarnings ]; + hardeningDisable = [ "format" ]; meta = { description = "Create MaxMind DB database files"; license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];