depot/third_party/nixpkgs/pkgs/development/java-modules/postgresql_jdbc/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

26 lines
720 B
Nix

{ lib, stdenv, fetchMavenArtifact }:
stdenv.mkDerivation rec {
pname = "postgresql-jdbc";
version = "42.5.0";
src = fetchMavenArtifact {
artifactId = "postgresql";
groupId = "org.postgresql";
sha256 = "sha256-pNGLWrGuuShaixezZfQk8mhEUinKv45BIRXbYVK33uM=";
inherit version;
};
installPhase = ''
runHook preInstall
install -m444 -D $src/share/java/*postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
runHook postInstall
'';
meta = with lib; {
homepage = "https://jdbc.postgresql.org/";
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
license = licenses.bsd2;
platforms = platforms.unix;
};
}