···4242# Additional arguments are:
4343# - `postgresql` postgresql package of the version of postgresql this extension should be build for.
4444# Needs to be the build platform variant.
4545-# - `useFakeRustfmt` Wether to use a noop fake command as rustfmt. cargo-pgx tries to call rustfmt.
4545+# - `useFakeRustfmt` Whether to use a noop fake command as rustfmt. cargo-pgx tries to call rustfmt.
4646# If the generated rust bindings aren't needed to use the extension, its a
4747# unnecessary and heavy dependency. If you set this to true, you also
4848# have to add `rustfmt` to `nativeBuildInputs`.
···106106 nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [
107107 cargo-pgx
108108 postgresql
109109- rustPlatform.rust.rustc
110109 pkg-config
111110 rustPlatform.bindgenHook
112111 ] ++ lib.optionals useFakeRustfmt [ fakeRustfmt ];
···121120 NIX_PGLIBDIR="${postgresql}/lib" \
122121 PGX_BUILD_FLAGS="--frozen -j $NIX_BUILD_CORES ${builtins.concatStringsSep " " cargoBuildFlags}" \
123122 cargo-pgx pgx package \
124124- --pg-config ${postgresql}/bin/pg_config \
125125- ${maybeDebugFlag} \
126126- --features "${builtins.concatStringsSep " " buildFeatures}" \
127127- --out-dir "$out"
123123+ --pg-config ${postgresql}/bin/pg_config \
124124+ ${maybeDebugFlag} \
125125+ --features "${builtins.concatStringsSep " " buildFeatures}" \
126126+ --out-dir "$out"
128127129128 ${maybeLeaveBuildAndTestSubdir}
130129