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

27 lines
711 B
Nix
Raw Normal View History

{ stdenv, fetchMavenArtifact }:
2014-01-03 10:46:54 +00:00
2012-08-27 18:02:39 +00:00
stdenv.mkDerivation rec {
2014-01-03 10:46:54 +00:00
name = "postgresql-jdbc-${version}";
version = "42.2.2";
src = fetchMavenArtifact {
artifactId = "postgresql";
groupId = "org.postgresql";
sha256 = "0w7sfi1gmzqhyhr4iq9znv8hff41xwwqcblkyd9ph0m34r0555hr";
inherit version;
};
phases = [ "installPhase" ];
2014-01-03 10:46:54 +00:00
installPhase = ''
install -D $src/share/java/*_postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
'';
2012-08-27 18:02:39 +00:00
2015-06-10 11:00:11 +00:00
meta = with stdenv.lib; {
homepage = https://jdbc.postgresql.org/;
2012-08-27 18:02:39 +00:00
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
2015-06-10 11:00:11 +00:00
license = licenses.bsd3;
platforms = platforms.unix;
2012-08-27 18:02:39 +00:00
};
}