nixpkgs/pkgs/servers/sql/postgresql/jdbc/default.nix
2014-01-03 14:33:17 +01:00

28 lines
653 B
Nix

{ stdenv, fetchurl, ant, jdk }:
let version = "9.3-1100"; in
stdenv.mkDerivation rec {
name = "postgresql-jdbc-${version}";
src = fetchurl {
url = "http://jdbc.postgresql.org/download/postgresql-jdbc-${version}.src.tar.gz";
sha256 = "0mbdzhzg4ws0i7ps98rg0q5n68lsrdm2klj7y7skaix0rpa57gp6";
};
buildInputs = [ ant jdk ];
buildPhase = "ant";
installPhase =
''
mkdir -p $out/share/java
cp jars/*.jar $out/share/java
'';
meta = {
homepage = http://jdbc.postgresql.org/;
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
license = "bsd";
};
}