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