2014-01-03 13:33:17 +00:00
|
|
|
{ stdenv, fetchurl, ant, jdk }:
|
2005-05-24 16:32:57 +01:00
|
|
|
|
2014-01-03 10:46:54 +00:00
|
|
|
let version = "9.3-1100"; in
|
|
|
|
|
2012-08-27 19:02:39 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-03 10:46:54 +00:00
|
|
|
name = "postgresql-jdbc-${version}";
|
2005-05-24 16:32:57 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-03 10:46:54 +00:00
|
|
|
url = "http://jdbc.postgresql.org/download/postgresql-jdbc-${version}.src.tar.gz";
|
|
|
|
sha256 = "0mbdzhzg4ws0i7ps98rg0q5n68lsrdm2klj7y7skaix0rpa57gp6";
|
2005-05-24 16:32:57 +01:00
|
|
|
};
|
|
|
|
|
2014-01-03 13:33:17 +00:00
|
|
|
buildInputs = [ ant jdk ];
|
2014-01-03 10:46:54 +00:00
|
|
|
|
|
|
|
buildPhase = "ant";
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp jars/*.jar $out/share/java
|
|
|
|
'';
|
2012-08-27 19:02:39 +01:00
|
|
|
|
2015-06-10 12:00:11 +01:00
|
|
|
meta = with stdenv.lib; {
|
2012-08-27 19:02:39 +01:00
|
|
|
homepage = http://jdbc.postgresql.org/;
|
|
|
|
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
|
2015-06-10 12:00:11 +01:00
|
|
|
license = licenses.bsd3;
|
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
|
|
|
}
|