2018-04-12 17:35:16 +02:00
|
|
|
{ stdenv, fetchMavenArtifact }:
|
2014-01-03 11:46:54 +01:00
|
|
|
|
2012-08-27 20:02:39 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-03 11:46:54 +01:00
|
|
|
name = "postgresql-jdbc-${version}";
|
2018-04-12 17:35:16 +02:00
|
|
|
version = "42.2.2";
|
2005-05-24 17:32:57 +02:00
|
|
|
|
2018-04-12 17:35:16 +02:00
|
|
|
src = fetchMavenArtifact {
|
|
|
|
artifactId = "postgresql";
|
|
|
|
groupId = "org.postgresql";
|
|
|
|
sha256 = "0w7sfi1gmzqhyhr4iq9znv8hff41xwwqcblkyd9ph0m34r0555hr";
|
|
|
|
inherit version;
|
2005-05-24 17:32:57 +02:00
|
|
|
};
|
|
|
|
|
2018-04-12 17:35:16 +02:00
|
|
|
phases = [ "installPhase" ];
|
2014-01-03 11:46:54 +01:00
|
|
|
|
2018-04-12 17:35:16 +02:00
|
|
|
installPhase = ''
|
|
|
|
install -D $src/share/java/*_postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
|
|
|
|
'';
|
2012-08-27 20:02:39 +02:00
|
|
|
|
2015-06-10 13:00:11 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-22 20:50:04 +02:00
|
|
|
homepage = https://jdbc.postgresql.org/;
|
2012-08-27 20:02:39 +02:00
|
|
|
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
|
2015-06-10 13:00:11 +02:00
|
|
|
license = licenses.bsd3;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.unix;
|
2012-08-27 20:02:39 +02:00
|
|
|
};
|
2005-05-24 17:32:57 +02:00
|
|
|
}
|