ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / po / postgresql_jdbc / package.nix
blobf1e93e352eb83af8f3feb0c6617ef9dcb6d3ee1c
1 { lib, stdenv, fetchMavenArtifact }:
3 stdenv.mkDerivation rec {
4   pname = "postgresql-jdbc";
5   version = "42.6.1";
7   src = fetchMavenArtifact {
8     artifactId = "postgresql";
9     groupId = "org.postgresql";
10     hash = "sha256-ywd0/X0JsjniHp0Es3RKQId7/0Y6jVjD9AfPfZdsNVc=";
11     inherit version;
12   };
14   installPhase = ''
15     runHook preInstall
16     install -m444 -D $src/share/java/*postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
17     runHook postInstall
18   '';
20   meta = with lib; {
21     homepage = "https://jdbc.postgresql.org/";
22     changelog = "https://github.com/pgjdbc/pgjdbc/releases/tag/REL${version}";
23     description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
24     license = licenses.bsd2;
25     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
26     platforms = platforms.unix;
27   };