nixpkgs/pkgs/servers/sql/postgresql/jdbc/default.nix

29 lines
653 B
Nix
Raw Normal View History

2014-01-03 13:33:17 +00:00
{ stdenv, fetchurl, ant, jdk }:
2014-01-03 10:46:54 +00:00
let version = "9.3-1100"; in
2012-08-27 18:02:39 +00:00
stdenv.mkDerivation rec {
2014-01-03 10:46:54 +00:00
name = "postgresql-jdbc-${version}";
src = fetchurl {
2014-01-03 10:46:54 +00:00
url = "http://jdbc.postgresql.org/download/postgresql-jdbc-${version}.src.tar.gz";
sha256 = "0mbdzhzg4ws0i7ps98rg0q5n68lsrdm2klj7y7skaix0rpa57gp6";
};
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 18:02:39 +00:00
meta = {
homepage = http://jdbc.postgresql.org/;
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
license = "bsd";
};
}