Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix: Provide lib in flakes with buildPgxExtension #358

Merged
merged 7 commits into from
Jan 3, 2022
Merged

Conversation

Hoverbear
Copy link
Contributor

The currently pgx extension build derivations are quite non-trivial, and are right now provisioned as part of the nix flake init -t github:zombodb/pgx command.

If we were to find ways to improve it, users would have to manually update, which is un-ideal.

This PR creates a number of lib functions in our crate, including one that builds pgx extensions.

Once this is landed in the main branch, users could do:

mkdir pgx-demo
cd pgx-demo
nix init -t github:zombodb/pgx
chmod +x .cargo/pgx-linker-script.sh
cargo fetch
nix flake check

Signed-off-by: Ana Hobden <[email protected]>
Signed-off-by: Ana Hobden <[email protected]>
Signed-off-by: Ana Hobden <[email protected]>
Signed-off-by: Ana Hobden <[email protected]>
Signed-off-by: Ana Hobden <[email protected]>
Signed-off-by: Ana Hobden <[email protected]>
Signed-off-by: Ana Hobden <[email protected]>
@Hoverbear Hoverbear self-assigned this Jan 3, 2022
@Hoverbear Hoverbear merged commit 77314d5 into develop Jan 3, 2022
@Hoverbear Hoverbear mentioned this pull request Feb 9, 2022
@Hoverbear Hoverbear deleted the nix-lib branch February 25, 2022 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant