3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/java-modules/postgresql_jdbc/default.nix

27 lines
716 B
Nix
Raw Normal View History

{ stdenv, fetchMavenArtifact }:
2014-01-03 10:46:54 +00:00
2012-08-27 19:02:39 +01:00
stdenv.mkDerivation rec {
2014-01-03 10:46:54 +00:00
name = "postgresql-jdbc-${version}";
version = "42.2.5";
src = fetchMavenArtifact {
artifactId = "postgresql";
groupId = "org.postgresql";
sha256 = "1p0cbb7ka41xxipzjy81hmcndkqynav22xyipkg7qdqrqvw4dykz";
inherit version;
};
phases = [ "installPhase" ];
2014-01-03 10:46:54 +00:00
installPhase = ''
install -m444 -D $src/share/java/*postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
'';
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";
license = licenses.bsd2;
platforms = platforms.unix;
2012-08-27 19:02:39 +01:00
};
}