summary refs log tree commit diff
path: root/pkgs/top-level/php-packages.nix
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2019-12-08 20:45:52 +0100
committerGitHub <noreply@github.com>2019-12-08 20:45:52 +0100
commit5b6e958b925e6f061c753031b0a4c704c1ae80c8 (patch)
tree7235fe1c5c619802db171457285c4c001d15ef2b /pkgs/top-level/php-packages.nix
parentf640cf49d1ce044f7dc615094513234c979cb621 (diff)
parent5b20f660f6eed13c3a50a0ad13f6aeefea6328c4 (diff)
downloadnixpkgs-5b6e958b925e6f061c753031b0a4c704c1ae80c8.tar
nixpkgs-5b6e958b925e6f061c753031b0a4c704c1ae80c8.tar.gz
nixpkgs-5b6e958b925e6f061c753031b0a4c704c1ae80c8.tar.bz2
nixpkgs-5b6e958b925e6f061c753031b0a4c704c1ae80c8.tar.lz
nixpkgs-5b6e958b925e6f061c753031b0a4c704c1ae80c8.tar.xz
nixpkgs-5b6e958b925e6f061c753031b0a4c704c1ae80c8.tar.zst
nixpkgs-5b6e958b925e6f061c753031b0a4c704c1ae80c8.zip
Merge pull request #73579 from helsinki-systems/php-maxminddb-init
phpPackages.maxminddb: Init at 1.5.0
Diffstat (limited to 'pkgs/top-level/php-packages.nix')
-rw-r--r--pkgs/top-level/php-packages.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix
index f315d927760..9bd304b7d96 100644
--- a/pkgs/top-level/php-packages.nix
+++ b/pkgs/top-level/php-packages.nix
@@ -199,6 +199,27 @@ let
     sha256 = "00nk14jbdbln93mx3ag691avc11ff94hkadrcv5pn51c6ihsxbmz";
   };
 
+  maxminddb = buildPecl rec {
+    pname = "maxminddb";
+    version = "1.5.0";
+
+    src = pkgs.fetchFromGitHub {
+      owner = "maxmind";
+      repo = "MaxMind-DB-Reader-php";
+      rev = "v${version}";
+      sha256 = "1ilgpx36rgihjr8s4bvkbms5hl6xy7mymna3ym2bl4lb15vkr0sm";
+    };
+
+    buildInputs = [ pkgs.libmaxminddb ];
+    sourceRoot = "source/ext";
+
+    meta = with pkgs.lib; {
+      description = "C extension that is a drop-in replacement for MaxMind\\Db\\Reader";
+      license = with licenses; [ asl20 ];
+      maintainers = with maintainers; [ ajs124 das_j ];
+    };
+  };
+
   memcached = buildPecl rec {
     version = "3.1.5";
     pname = "memcached";