pgrx
pgrx copied to clipboard
Refactor Nix sources
This PR refactors the Nix sources in a few ways:
- It removes the
naersk
dependency from the maincargo-pgx
package build - It uses Nixpkgs'
buildRustPackage
for thecargo-pgx
build - It brings things in line with some flake best practices and silences some errors (e.g. using
package.default
instead ofdefaultPackage
) - It makes the
cargo-pgx
package buildable on macOS via some optionalbuildInputs
- It introduces
flake-utils
helpers for system-specific needs
An important thing to note is that I've left the lib
output as-is, as I'm not fully sure what the current intentions are for that.
Without affecting the lib
or providing a sample of how to build a pgx extension using buildRustPackage
this unfortunately has pretty limited use. :(
Thank you for offering but no.