You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 659cf99
Browse filesBrowse the repository at this point in the historyBrowse files
pgrx is a build dep for rust extensions but not really necessary as an
output in this repo. These attributes aren't even used anyway since we
use mkPgrxExtension to build rust extensions and that uses pgrxs defined
in nix/ext/versions.json which builds pgrx using hashes from
nix/cargo-pgrx/versions.json.
These were only used for devshells for the extensions but those are
better off in their own repos.
Copy file name to clipboardExpand all lines: nix/docs/updating-pgrx-extensions.md
+4-23Lines changed: 4 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,8 +119,6 @@ Use this when the extension requires a newer pgrx version.
119
119
|`nix/ext/versions.json`| Add new version with new pgrx version |
120
120
|`nix/ext/<extension>/default.nix`| Add old version to `allPreviouslyPackagedVersions`|
121
121
|`nix/cargo-pgrx/versions.json`| Add new pgrx version (if not already present) |
122
-
|`nix/cargo-pgrx/default.nix`| Add new `cargo-pgrx_x_y_z` entry (if not already present) |
123
-
|`nix/overlays/default.nix`| Add new `buildPgrxExtension_x_y_z` (if not already present) |
124
122
125
123
### Steps
126
124
@@ -143,27 +141,10 @@ Use this when the extension requires a newer pgrx version.
143
141
}
144
142
```
145
143
146
-
The `rust` object maps Rust versions to their corresponding `cargoHash`. You'll need to calculate both the `hash` (for the pgrx crate) and `cargoHash` (for cargo dependencies).
144
+
The `rust` object maps Rust versions to their corresponding `cargoHash`.
145
+
You'll need to calculate both the `hash` (for the pgrx crate) and `cargoHash` (for cargo dependencies).
147
146
148
-
3.**Add cargo-pgrx entry** in `nix/cargo-pgrx/default.nix`:
149
-
150
-
```nix
151
-
cargo-pgrx_0_16_1 = mkCargoPgrx {
152
-
version = "0.16.1";
153
-
hash = "";
154
-
cargoHash = "";
155
-
};
156
-
```
157
-
158
-
4.**Add overlay entry** in `nix/overlays/default.nix`:
0 commit comments