postgresql-jdbc: 9.3-1100 -> 42.2.2 (#38854)

This commit is contained in:
Yorick 2018-04-12 17:35:16 +02:00 committed by Jörg Thalheim
parent 2104222970
commit 0812b5c588

View File

@ -1,23 +1,20 @@
{ stdenv, fetchurl, ant, jdk }:
let version = "9.3-1100"; in
{ stdenv, fetchMavenArtifact }:
stdenv.mkDerivation rec {
name = "postgresql-jdbc-${version}";
version = "42.2.2";
src = fetchurl {
url = "http://jdbc.postgresql.org/download/postgresql-jdbc-${version}.src.tar.gz";
sha256 = "0mbdzhzg4ws0i7ps98rg0q5n68lsrdm2klj7y7skaix0rpa57gp6";
src = fetchMavenArtifact {
artifactId = "postgresql";
groupId = "org.postgresql";
sha256 = "0w7sfi1gmzqhyhr4iq9znv8hff41xwwqcblkyd9ph0m34r0555hr";
inherit version;
};
buildInputs = [ ant jdk ];
phases = [ "installPhase" ];
buildPhase = "ant";
installPhase =
''
mkdir -p $out/share/java
cp jars/*.jar $out/share/java
installPhase = ''
install -D $src/share/java/*_postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
'';
meta = with stdenv.lib; {