pgrx
pgrx copied to clipboard
Refactor Nix sources
trafficstars
This PR refactors the Nix sources in a few ways:
- It removes the
naerskdependency from the maincargo-pgxpackage build - It uses Nixpkgs'
buildRustPackagefor thecargo-pgxbuild - It brings things in line with some flake best practices and silences some errors (e.g. using
package.defaultinstead ofdefaultPackage) - It makes the
cargo-pgxpackage buildable on macOS via some optionalbuildInputs - It introduces
flake-utilshelpers 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.