summary refs log tree commit diff
path: root/pkgs/development/ruby-modules
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-06-18 18:01:48 +0000
committerGitHub <noreply@github.com>2023-06-18 18:01:48 +0000
commita7324a2bde2ca2e9fa54d552a60ef3e9f930a1f7 (patch)
tree33e49399f2785756f51f5bde34e9899e7d628a0f /pkgs/development/ruby-modules
parent81a9b5cb827454430345888116849d5b913b3636 (diff)
parent10a7b09af825757f3a1936a4e0e5f321a248c651 (diff)
downloadnixpkgs-a7324a2bde2ca2e9fa54d552a60ef3e9f930a1f7.tar
nixpkgs-a7324a2bde2ca2e9fa54d552a60ef3e9f930a1f7.tar.gz
nixpkgs-a7324a2bde2ca2e9fa54d552a60ef3e9f930a1f7.tar.bz2
nixpkgs-a7324a2bde2ca2e9fa54d552a60ef3e9f930a1f7.tar.lz
nixpkgs-a7324a2bde2ca2e9fa54d552a60ef3e9f930a1f7.tar.xz
nixpkgs-a7324a2bde2ca2e9fa54d552a60ef3e9f930a1f7.tar.zst
nixpkgs-a7324a2bde2ca2e9fa54d552a60ef3e9f930a1f7.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/ruby-modules')
-rw-r--r--pkgs/development/ruby-modules/gem-config/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix
index 22794da2516..a9eb1f96ab8 100644
--- a/pkgs/development/ruby-modules/gem-config/default.nix
+++ b/pkgs/development/ruby-modules/gem-config/default.nix
@@ -573,9 +573,14 @@ in
   };
 
   pg = attrs: {
-    buildFlags = [
-      "--with-pg-config=${postgresql}/bin/pg_config"
-    ];
+    # Force pkg-config lookup for libpq.
+    # See https://github.com/ged/ruby-pg/blob/6629dec6656f7ca27619e4675b45225d9e422112/ext/extconf.rb#L34-L55
+    #
+    # Note that setting --with-pg-config=${postgresql}/bin/pg_config would add
+    # an unnecessary reference to the entire postgresql package.
+    buildFlags = [ "--with-pg-config=ignore" ];
+    nativeBuildInputs = [ pkg-config ];
+    buildInputs = [ postgresql ];
   };
 
   psych = attrs: {