-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libpq: init at 16.1 #234470
libpq: init at 16.1 #234470
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ stdenv | ||
, lib | ||
, openssl | ||
, zlib | ||
, libkrb5 | ||
, icu | ||
, postgresql | ||
, pkg-config | ||
, tzdata | ||
, gssSupport ? !stdenv.hostPlatform.isWindows | ||
}: | ||
|
||
stdenv.mkDerivation { | ||
pname = "libpq"; | ||
inherit (postgresql) src version; | ||
|
||
configureFlags = [ | ||
"--with-openssl" | ||
"--with-icu" | ||
"--without-readline" | ||
"--with-system-tzdata=${tzdata}/share/zoneinfo" | ||
"--enable-debug" | ||
] | ||
++ lib.optionals gssSupport [ "--with-gssapi" ]; | ||
|
||
nativeBuildInputs = [ pkg-config tzdata ]; | ||
buildInputs = [ openssl zlib icu ] | ||
++ lib.optional gssSupport libkrb5; | ||
|
||
enableParallelBuilding = !stdenv.isDarwin; | ||
|
||
separateDebugInfo = true; | ||
|
||
buildFlags = [ "submake-libpq" "submake-libpgport" ]; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
|
||
make -C src/bin/pg_config install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is wrong:
This probably needs to be patched the same way as the complete postgres package. Hence it's necessary to reach an agreement with the maintainers first. |
||
make -C src/common install | ||
make -C src/include install | ||
make -C src/interfaces/libpq install | ||
make -C src/port install | ||
|
||
moveToOutput "bin" "$dev" | ||
moveToOutput "lib/*.a" "$static" | ||
rm -rfv $out/share | ||
|
||
runHook postInstall | ||
''; | ||
|
||
outputs = [ "out" "dev" "static" ]; | ||
|
||
meta = with lib; { | ||
homepage = "https://www.postgresql.org"; | ||
description = "Client API library for PostgreSQL"; | ||
license = licenses.postgresql; | ||
maintainers = with maintainers; [ szlend ]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably would want to include existing postgresql maintainers. |
||
platforms = platforms.unix; | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about using lib/strings functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean?