Unverified Commit f83e1372 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #237858 from tie/rubygems-pg

rubyPackages.pg: use pkg-config instead of pg_config
parents d6d7fb84 1a54459c
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -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: {