From 42b3cedbb5b880e035258b86b2565a9341d4413b Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Wed, 25 May 2022 18:56:23 +0200 Subject: [PATCH] php.extensions.oci8: Drop 2.2.0 for older PHP packages --- pkgs/development/php-packages/oci8/default.nix | 6 +++++- pkgs/top-level/php-packages.nix | 8 +------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/development/php-packages/oci8/default.nix b/pkgs/development/php-packages/oci8/default.nix index eb65b5a27cda..2657a67d38ba 100644 --- a/pkgs/development/php-packages/oci8/default.nix +++ b/pkgs/development/php-packages/oci8/default.nix @@ -1,4 +1,8 @@ -{ buildPecl, lib, version, sha256, oracle-instantclient }: +{ buildPecl, lib, oracle-instantclient }: +let + version = "3.0.1"; + sha256 = "108ds92620dih5768z19hi0jxfa7wfg5hdvyyvpapir87c0ap914"; +in buildPecl { pname = "oci8"; diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 91e6da336ba8..a1079243f246 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -224,13 +224,7 @@ lib.makeScope pkgs.newScope (self: with self; { mongodb = callPackage ../development/php-packages/mongodb { }; - oci8 = callPackage ../development/php-packages/oci8 ({ - version = "2.2.0"; - sha256 = "0jhivxj1nkkza4h23z33y7xhffii60d7dr51h1czjk10qywl7pyd"; - } // lib.optionalAttrs (lib.versionAtLeast php.version "8.0") { - version = "3.0.1"; - sha256 = "108ds92620dih5768z19hi0jxfa7wfg5hdvyyvpapir87c0ap914"; - }); + oci8 = callPackage ../development/php-packages/oci8 { }; openswoole = callPackage ../development/php-packages/openswoole { };