aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/java-modules
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2018-08-06 10:17:52 -0500
committerAustin Seipp <aseipp@pobox.com>2019-01-19 17:33:32 -0600
commit8cbe6b9ce421f5f214bcca92d5d18d12104edeb7 (patch)
tree1d4e5f2ca0aa8c5b0f6bd1fba75bc76164c4fe07 /pkgs/development/java-modules
parent73f56ae19126109caa02bdfdc42ac2e633de00be (diff)
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>
Diffstat (limited to 'pkgs/development/java-modules')
-rw-r--r--pkgs/development/java-modules/postgresql_jdbc/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/java-modules/postgresql_jdbc/default.nix b/pkgs/development/java-modules/postgresql_jdbc/default.nix
new file mode 100644
index 000000000000..c67d72705482
--- /dev/null
+++ b/pkgs/development/java-modules/postgresql_jdbc/default.nix
@@ -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;
+ };
+}