File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 98
98
- name : Build Tidy extension
99
99
run : nix-build -A outputs.checks.${{ matrix.archs.arch }}.${{ steps.params.outputs.attr }}-tidy
100
100
101
+ - name : Build Decimal extension
102
+ if : ${{ steps.params.outputs.major >= 7 }}
103
+ run : nix-build -A outputs.checks.${{ matrix.archs.arch }}.${{ steps.params.outputs.attr }}-decimal
104
+
101
105
- name : Check that composer PHAR works
102
106
run : nix-build -A outputs.checks.${{ matrix.archs.arch }}.${{ steps.params.outputs.attr }}-composer-phar
103
107
Original file line number Diff line number Diff line change 53
53
drv = { php , ... } : php . extensions . tidy ;
54
54
} ;
55
55
56
+ decimal = {
57
+ description = "Build Decimal extension" ;
58
+ enabled = { php , lib , ... } : lib . versionAtLeast php . version "7" ;
59
+ drv = { php , ... } : php . extensions . decimal ;
60
+ } ;
61
+
56
62
composer-phar = {
57
63
description = "Check that composer PHAR works" ;
58
64
drv =
Original file line number Diff line number Diff line change 104
104
else
105
105
prev . extensions . datadog_trace ;
106
106
107
+ decimal =
108
+ if lib . versionOlder prev . php . version "7.0" then
109
+ throw "php.extensions.decimal requires PHP version >= 7.0"
110
+ else if lib . versionOlder prev . php . version "8.0" then
111
+ prev . extensions . decimal . overrideAttrs ( attrs : {
112
+ preConfigure = attrs . preConfigure or "" + linkInternalDeps [ final . extensions . json ] ;
113
+
114
+ env = mergeEnv attrs {
115
+ NIX_CFLAGS_COMPILE = lib . optionals ( lib . versionOlder prev . php . version "7.4" ) [
116
+ "-Wno-incompatible-${ lib . optionalString isClang "function-" } pointer-types"
117
+ ] ;
118
+ } ;
119
+ } )
120
+ else
121
+ prev . extensions . decimal ;
122
+
107
123
dom = prev . extensions . dom . overrideAttrs ( attrs : {
108
124
patches =
109
125
let
You can’t perform that action at this time.
0 commit comments