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