From a628ad3c795bdd27677a1f1ad5090fe1ecde4de9 Mon Sep 17 00:00:00 2001 From: Diogo Correia Date: Fri, 28 Mar 2025 19:10:40 +0000 Subject: [PATCH] buildPgrxExtension: add missing doc of usePgTestCheckFeature and fix typo --- .../development/tools/rust/cargo-pgrx/buildPgrxExtension.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-pgrx/buildPgrxExtension.nix b/pkgs/development/tools/rust/cargo-pgrx/buildPgrxExtension.nix index 3a2e952de352..b62db684d072 100644 --- a/pkgs/development/tools/rust/cargo-pgrx/buildPgrxExtension.nix +++ b/pkgs/development/tools/rust/cargo-pgrx/buildPgrxExtension.nix @@ -47,6 +47,7 @@ # If the generated rust bindings aren't needed to use the extension, its a # unnecessary and heavy dependency. If you set this to true, you also # have to add `rustfmt` to `nativeBuildInputs`. +# - `usePgTestCheckFeature` Whether to enable the `pg_test` feature during the check phase. lib.extendMkDerivation { constructDrv = rustPlatform.buildRustPackage; @@ -80,10 +81,10 @@ lib.extendMkDerivation { assert lib.asserts.assertMsg ( (args.installPhase or "") == "" - ) "buildPgrxExtensions overwrites the installPhase, so providing one does nothing"; + ) "buildPgrxExtension overwrites the installPhase, so providing one does nothing"; assert lib.asserts.assertMsg ( (args.buildPhase or "") == "" - ) "buildPgrxExtensions overwrites the buildPhase, so providing one does nothing"; + ) "buildPgrxExtension overwrites the buildPhase, so providing one does nothing"; assert lib.asserts.assertMsg (useFakeRustfmt -> !rustfmtInNativeBuildInputs) "The parameter useFakeRustfmt is set to true, but rustfmt is included in nativeBuildInputs. Either set useFakeRustfmt to false or remove rustfmt from nativeBuildInputs."; assert lib.asserts.assertMsg (!useFakeRustfmt -> rustfmtInNativeBuildInputs)