From 5e78fbb0802712b42b4a505df2999d1ca28e24a9 Mon Sep 17 00:00:00 2001 From: Sean D Gillespie Date: Mon, 27 Oct 2025 14:40:15 -0400 Subject: [PATCH] Add back required libpq static linking flags Add back the following linker options: * -lpgcommon * -lpgport These got removed at some point to test if they were still needed (they are), but for some reason never got added back. Resolves: #2009 --- flake.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 15f9d7cfc..f944407e5 100644 --- a/flake.nix +++ b/flake.nix @@ -244,11 +244,8 @@ # libpq static is pretty broken in nixpkgs. We can't rely on the # pkg-config, so we have to add the correct libraries ourselves # - # TODO[sgillespie]: Are these still required? Review the - # postgresql/nixpkgs packaging scripts - # - # "-optl-Wl,-lpgcommon" - # "-optl-Wl,-lpgport" + "-optl-Wl,-lpgcommon" + "-optl-Wl,-lpgport" "-optl-Wl,-lm" # Since we aren't using pkg-config, it won't automatically include