nixpkgs: reorganize the postgresql extensions

This is a backwards compatible change; it mostly puts all the extensions
for postgresql in a common directory to keep them isolated.

It also moves a few things that /were not/ extensions out into other parts of
the filesystem namespace; namely the postgresql_jdbc and psqlodbc libraries
were moved under development/java-modules and development/libraries,
respectively. Because these libraries use the libpq postgresql client drivers,
they're less sensitive to underlying version changes anyway (since the protocol
is relatively stable).

No attributes were renamed or harmed in the creation of this patch.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp
2018-08-06 10:17:52 -05:00
parent 73f56ae191
commit 8cbe6b9ce4
15 changed files with 27 additions and 24 deletions

View File

@@ -0,0 +1,26 @@
{ stdenv, fetchMavenArtifact }:
stdenv.mkDerivation rec {
name = "postgresql-jdbc-${version}";
version = "42.2.5";
src = fetchMavenArtifact {
artifactId = "postgresql";
groupId = "org.postgresql";
sha256 = "1p0cbb7ka41xxipzjy81hmcndkqynav22xyipkg7qdqrqvw4dykz";
inherit version;
};
phases = [ "installPhase" ];
installPhase = ''
install -m444 -D $src/share/java/*postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
'';
meta = with stdenv.lib; {
homepage = https://jdbc.postgresql.org/;
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
license = licenses.bsd2;
platforms = platforms.unix;
};
}