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

29 lines
678 B
Nix
Raw Normal View History

2014-01-03 14:33:17 +01:00
{ stdenv, fetchurl, ant, jdk }:
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}";
src = fetchurl {
2014-01-03 11:46:54 +01:00
url = "http://jdbc.postgresql.org/download/postgresql-jdbc-${version}.src.tar.gz";
sha256 = "0mbdzhzg4ws0i7ps98rg0q5n68lsrdm2klj7y7skaix0rpa57gp6";
};
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
2015-06-10 13:00:11 +02:00
meta = with stdenv.lib; {
2012-08-27 20:02:39 +02:00
homepage = http://jdbc.postgresql.org/;
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
2015-06-10 13:00:11 +02:00
license = licenses.bsd3;
2012-08-27 20:02:39 +02:00
};
}