diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-11-20 18:01:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 18:01:45 +0000 |
commit | 77fbd162dfb1cb918242bdaef3f3cd08f569f48a (patch) | |
tree | a3a7d210a9ad9d66bcb705111466429b96f76486 /pkgs/development/php-packages/oci8/default.nix | |
parent | 800d82aea922942501f27ea89b99c8d6dcd6d3b9 (diff) | |
parent | 1fde037c419c8d070a3a67ac7036b444c3ae08d6 (diff) |
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/php-packages/oci8/default.nix')
-rw-r--r-- | pkgs/development/php-packages/oci8/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/development/php-packages/oci8/default.nix b/pkgs/development/php-packages/oci8/default.nix index 2657a67d38ba7..477eea5898e59 100644 --- a/pkgs/development/php-packages/oci8/default.nix +++ b/pkgs/development/php-packages/oci8/default.nix @@ -1,12 +1,18 @@ -{ buildPecl, lib, oracle-instantclient }: +{ buildPecl, lib, oracle-instantclient, php }: + let - version = "3.0.1"; - sha256 = "108ds92620dih5768z19hi0jxfa7wfg5hdvyyvpapir87c0ap914"; + versionData = if (lib.versionOlder php.version "8.1") then { + version = "3.0.1"; + sha256 = "108ds92620dih5768z19hi0jxfa7wfg5hdvyyvpapir87c0ap914"; + } else { + version = "3.2.1"; + sha256 = "zyF703DzRZDBhlNFFt/dknmZ7layqhgjG1/ZDN+PEsg="; + }; in buildPecl { pname = "oci8"; - inherit version sha256; + inherit (versionData) version sha256; buildInputs = [ oracle-instantclient ]; configureFlags = [ "--with-oci8=shared,instantclient,${oracle-instantclient.lib}/lib" ]; |