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

30 lines
711 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 19:02:39 +01: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 19:02:39 +01:00
2015-06-10 12:00:11 +01:00
meta = with stdenv.lib; {
homepage = https://jdbc.postgresql.org/;
2012-08-27 19:02:39 +01:00
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;
platforms = platforms.unix;
2012-08-27 19:02:39 +01:00
};
}