2018-04-12 16:35:16 +01:00
|
|
|
{ stdenv, fetchMavenArtifact }:
|
2014-01-03 10:46:54 +00:00
|
|
|
|
2012-08-27 19:02:39 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "postgresql-jdbc";
|
2018-10-15 18:34:24 +01:00
|
|
|
version = "42.2.5";
|
2005-05-24 16:32:57 +01:00
|
|
|
|
2018-04-12 16:35:16 +01:00
|
|
|
src = fetchMavenArtifact {
|
|
|
|
artifactId = "postgresql";
|
|
|
|
groupId = "org.postgresql";
|
2018-10-15 18:34:24 +01:00
|
|
|
sha256 = "1p0cbb7ka41xxipzjy81hmcndkqynav22xyipkg7qdqrqvw4dykz";
|
2018-04-12 16:35:16 +01:00
|
|
|
inherit version;
|
2005-05-24 16:32:57 +01:00
|
|
|
};
|
|
|
|
|
2018-04-12 16:35:16 +01:00
|
|
|
phases = [ "installPhase" ];
|
2014-01-03 10:46:54 +00:00
|
|
|
|
2018-04-12 16:35:16 +01:00
|
|
|
installPhase = ''
|
2018-10-15 18:34:24 +01:00
|
|
|
install -m444 -D $src/share/java/*postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
|
2018-04-12 16:35:16 +01:00
|
|
|
'';
|
2012-08-27 19:02:39 +01:00
|
|
|
|
2015-06-10 12:00:11 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://jdbc.postgresql.org/";
|
2012-08-27 19:02:39 +01:00
|
|
|
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
|
2018-10-15 18:34:24 +01:00
|
|
|
license = licenses.bsd2;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.unix;
|
2012-08-27 19:02:39 +01:00
|
|
|
};
|
2005-05-24 16:32:57 +01:00
|
|
|
}
|