Skip to content

Commit a5318ff

Browse files
authored
phpExtensions.relay: 0.7.0 -> 0.10.0 (#378124)
2 parents 27d7eab + e9a9422 commit a5318ff

File tree

1 file changed

+24
-28
lines changed

1 file changed

+24
-28
lines changed

pkgs/development/php-packages/relay/default.nix

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
php,
66
openssl,
77
hiredis,
8+
libck,
89
zstd,
910
lz4,
1011
autoPatchelfHook,
@@ -14,42 +15,36 @@
1415
}:
1516

1617
let
17-
version = "0.7.0";
18+
version = "0.10.0";
1819
hashes = {
1920
"aarch64-darwin" = {
2021
platform = "darwin-arm64";
2122
hash = {
22-
"8.0" = "sha256-pd/9TWZPgAfmVM0/QVYRHu5k4gANcxCSnfAl38irO0Y=";
23-
"8.1" = "sha256-OpxE/nu8MZedTmKGQeyJm36pyyHlRpW11avuGcnGP68=";
24-
"8.2" = "sha256-+CMPdXZotUr43Qda1FwGpuWPEE1K4RuBNE9fiokAtoY=";
25-
"8.3" = "sha256-lbKVxOd5gK5VDGnJ42w7L5DFKsBQDZXgEZLR/Y0gP88=";
23+
"8.1" = "sha256-aEuYKo31dKV7TSOeKt4BSShstNxfS4EdibJ2279XTbg=";
24+
"8.2" = "sha256-tjE+bAiVWYh6od8rW7flZ6ajMGxMJszw7H055VtDJsc=";
25+
"8.3" = "1czi5sfic13068hj8x1fgzkwsykbrr1g5ifc53zxds5vqywa74d7";
26+
"8.4" = "sha256-QUryARS5omADR3kEykCnoK4IFau1RpTQKDcCJ+lN/SY=";
27+
"8.5" = "0k33qfrlxb9v0d15mdzzqsgdcik8z65nv1q9spn7ibdxg6clzykj";
2628
};
2729
};
2830
"aarch64-linux" = {
2931
platform = "debian-aarch64+libssl3";
3032
hash = {
31-
"8.0" = "sha256-NfeC3p0YLYz3NbjzjMRRuzMsnYe9JRwlBjddAG2WV7g=";
32-
"8.1" = "sha256-kvO0PE3BSgFSfe1zHh3WnygQfVV+5V0YFfClBim1Kj4=";
33-
"8.2" = "sha256-illxRqqwMKVNAp6BD+mktKDccM7B/Q1W1KF9UB6aMUQ=";
34-
"8.3" = "sha256-QdB7g+ePJU8qt/BVo1CFnQ2vfkqR29WueBy3dLOOaR0=";
35-
};
36-
};
37-
"x86_64-darwin" = {
38-
platform = "darwin-x86-64";
39-
hash = {
40-
"8.0" = "sha256-rd3pt2N22bF4a8OOwksI7KJjR91IoxHwk3LcKuHSpV0=";
41-
"8.1" = "sha256-Y/moZrBe4rooQBSQKS8vPCTjviHKy4O7d4T1kD3udC4=";
42-
"8.2" = "sha256-H3EWFk/ZmE+fSU98nLHyq1p1vtU/TYp28OzNLox6kYY=";
43-
"8.3" = "sha256-vZTarrauo7U2JLOXUCwmu2h+vBtWZpm0Q39KkuLyVgY=";
33+
"8.1" = "sha256-Aq4jZyo5JzVtJM96HzzsnSnx8jOCAmHB6f3eo1922gs=";
34+
"8.2" = "sha256-Yd1bWEsRXuG30aDE9lCgLa/qlnXyeMehR3ROF0uAVTY=";
35+
"8.3" = "sha256-j6qhr04zQDi+mQh968nVxlTGEnhQobI7kG8DK35sCiM=";
36+
"8.4" = "0av8g5n4h3g2r4jbv3v1bwyx256z58wyygnd5jk4jzpx0ik2c1vv";
37+
"8.5" = "1aav4lh29d507av5ydxjvgm20fljl5lwdljdyq3038g3gi06yjaj";
4438
};
4539
};
4640
"x86_64-linux" = {
4741
platform = "debian-x86-64+libssl3";
4842
hash = {
49-
"8.0" = "sha256-jq/nHC9IGevYBqbM08nF71P9jH6z4NB8s1NdjHOfXQA=";
50-
"8.1" = "sha256-vbFONNHpuSTQsZMrAIdGEoBl5ySchcFkSuhW5uZKbWg=";
51-
"8.2" = "sha256-mXUAMkxwtuPZbIyCybBcxpmaBplr5h59pZEdgJ3PWtA=";
52-
"8.3" = "sha256-YL0P8GtFkV0cmJX1y6wd/HtA0LFzeuOcKDLUCagxHxE=";
43+
"8.1" = "sha256-306YMQr/UCJ+LOgEdzmqAPVBvbq2TDXnvSxdh4u6Nbc=";
44+
"8.2" = "sha256-tapNth0vqNlCh1c3HryIYOs+V9jadTV1rMvoz+tVbeI=";
45+
"8.3" = "sha256-f0eKpHcdiOHM55VuPYq+AJnbIwnBDLaECv+hYMBh0dw=";
46+
"8.4" = "05h2ikl0ymd2xmqifvv700xazhllsm234s41ipdgfwdj7zyxv58s";
47+
"8.5" = "0frnd7y3zvj8vq10r4479lx04lj606xzd3hjg61lg5mq65i6xih0";
5348
};
5449
};
5550
};
@@ -79,17 +74,17 @@ stdenv.mkDerivation (finalAttrs: {
7974
};
8075
nativeBuildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [ autoPatchelfHook ];
8176
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
77+
hiredis
78+
libck
8279
openssl
8380
zstd
8481
lz4
8582
];
83+
internalDeps = [ php.extensions.session ];
8684
installPhase =
8785
''
8886
runHook preInstall
89-
90-
mkdir -p $out/lib/php/extensions
91-
cp relay-pkg.so $out/lib/php/extensions/relay.so
92-
chmod +w $out/lib/php/extensions/relay.so
87+
install -Dm755 relay.so -t $out/lib/php/extensions
9388
''
9489
+ (
9590
if stdenv.hostPlatform.isDarwin then
@@ -105,6 +100,7 @@ stdenv.mkDerivation (finalAttrs: {
105100
[
106101
(nameValuePair "/opt/homebrew/opt/hiredis/lib/libhiredis.1.1.0.dylib" hiredis)
107102
(nameValuePair "/opt/homebrew/opt/hiredis/lib/libhiredis_ssl.dylib.1.1.0" hiredis)
103+
(nameValuePair "/opt/homebrew/opt/concurrencykit/lib/libck.0.dylib" libck)
108104
(nameValuePair "/opt/homebrew/opt/openssl@3/lib/libssl.3.dylib" openssl)
109105
(nameValuePair "/opt/homebrew/opt/openssl@3/lib/libcrypto.3.dylib" openssl)
110106
(nameValuePair "/opt/homebrew/opt/zstd/lib/libzstd.1.dylib" zstd)
@@ -136,15 +132,15 @@ stdenv.mkDerivation (finalAttrs: {
136132
common-updater-scripts
137133
]
138134
}"
139-
NEW_VERSION=$(curl --silent https://builds.r2.relay.so/meta/builds | tail -n1 | cut -c2-)
135+
NEW_VERSION=$(curl --silent https://builds.r2.relay.so/meta/builds | sort -V | tail -n1 | cut -c2-)
140136
141137
if [[ "${version}" = "$NEW_VERSION" ]]; then
142138
echo "The new version same as the old version."
143139
exit 0
144140
fi
145141
146142
for source in ${lib.concatStringsSep " " (builtins.attrNames finalAttrs.passthru.updateables)}; do
147-
update-source-version "$UPDATE_NIX_ATTR_PATH.updateables.$source" "$NEW_VERSION" --ignore-same-version
143+
update-source-version "$UPDATE_NIX_ATTR_PATH.updateables.$source" "$NEW_VERSION" --ignore-same-version --ignore-same-hash --print-changes
148144
done
149145
'';
150146

0 commit comments

Comments
 (0)