Skip to content

Commit fa4bd0d

Browse files
committed
feat(wrappers): add versions 0.1.12 and 0.1.14
1 parent c9084b3 commit fa4bd0d

File tree

5 files changed

+8676
-11
lines changed

5 files changed

+8676
-11
lines changed

nix/cargo-pgrx/versions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
}
1616
}
1717
},
18+
"0.8.3": {
19+
"hash": "sha256-1SdGPhyT/m65De3QTpEYAGvzbB6eLH1yUZ8XoN9LaVc=",
20+
"rust": {
21+
"1.70.0": {
22+
"cargoHash": "sha256-uFSv2mwn0dmIo6AG5Wz3THOwdE9B2PQQF10kiG/3qLU="
23+
}
24+
}
25+
},
1826
"0.9.5": {
1927
"hash": "sha256-GpXQUOBuojAqPXyRR+k8AVW2XzBbn6V0+2dhP4w4Vs8=",
2028
"rust": {

nix/ext/versions.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,22 @@
504504
}
505505
},
506506
"wrappers": {
507+
"0.1.12": {
508+
"postgresql": [
509+
"15"
510+
],
511+
"hash": "sha256-TScNbX+PBWUYgrBEnFXOaeXXfiOIa488H1oyIAw6v7I=",
512+
"pgrx": "0.8.3",
513+
"rust": "1.70.0"
514+
},
515+
"0.1.14": {
516+
"postgresql": [
517+
"15"
518+
],
519+
"hash": "sha256-w6rijRFUlWmwv4XE0G99ip2GkBF4nGTaX94kQvNRmJs=",
520+
"pgrx": "0.8.3",
521+
"rust": "1.70.0"
522+
},
507523
"0.1.15": {
508524
"postgresql": [
509525
"15"

nix/ext/wrappers/default.nix

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ let
3737
cargo
3838
git
3939
];
40-
buildInputs = [
41-
openssl
42-
postgresql
43-
]
44-
++ lib.optionals stdenv.isDarwin [
45-
darwin.apple_sdk.frameworks.CoreFoundation
46-
darwin.apple_sdk.frameworks.Security
47-
darwin.apple_sdk.frameworks.SystemConfiguration
48-
];
40+
buildInputs =
41+
[
42+
openssl
43+
postgresql
44+
]
45+
++ lib.optionals stdenv.isDarwin [
46+
darwin.apple_sdk.frameworks.CoreFoundation
47+
darwin.apple_sdk.frameworks.Security
48+
darwin.apple_sdk.frameworks.SystemConfiguration
49+
];
4950

5051
NIX_LDFLAGS = "-L${postgresql}/lib -lpq";
5152

@@ -244,11 +245,33 @@ let
244245
cp ${./v0.1.15/Cargo.lock} ./Cargo.lock
245246
'';
246247
}
248+
// lib.optionalAttrs (version == "0.1.14") {
249+
cargoLock = {
250+
lockFile = ./v0.1.14/Cargo.lock;
251+
outputHashes = {
252+
"clickhouse-rs-1.0.0-alpha.1" = "sha256-0zmoUo/GLyCKDLkpBsnLAyGs1xz6cubJhn+eVqMEMaw=";
253+
};
254+
};
255+
256+
postPatch = ''
257+
cp ${./v0.1.14/Cargo.lock} ./Cargo.lock
258+
'';
259+
}
260+
// lib.optionalAttrs (version == "0.1.12") {
261+
cargoLock = {
262+
lockFile = ./v0.1.12/Cargo.lock;
263+
outputHashes = {
264+
"clickhouse-rs-1.0.0-alpha.1" = "sha256-0zmoUo/GLyCKDLkpBsnLAyGs1xz6cubJhn+eVqMEMaw=";
265+
};
266+
};
267+
268+
postPatch = ''
269+
cp ${./v0.1.12/Cargo.lock} ./Cargo.lock
270+
'';
271+
}
247272
);
248273
# All versions that were previously packaged (historical list)
249274
allPreviouslyPackagedVersions = [
250-
"0.1.14"
251-
"0.1.12"
252275
"0.1.11"
253276
"0.1.10"
254277
"0.1.9"

0 commit comments

Comments
 (0)