mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 14:41:27 +00:00
postgresql-jdbc: 9.3-1100 -> 42.2.2 (#38854)
This commit is contained in:
parent
2104222970
commit
0812b5c588
@ -1,23 +1,20 @@
|
|||||||
{ stdenv, fetchurl, ant, jdk }:
|
{ stdenv, fetchMavenArtifact }:
|
||||||
|
|
||||||
let version = "9.3-1100"; in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "postgresql-jdbc-${version}";
|
name = "postgresql-jdbc-${version}";
|
||||||
|
version = "42.2.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchMavenArtifact {
|
||||||
url = "http://jdbc.postgresql.org/download/postgresql-jdbc-${version}.src.tar.gz";
|
artifactId = "postgresql";
|
||||||
sha256 = "0mbdzhzg4ws0i7ps98rg0q5n68lsrdm2klj7y7skaix0rpa57gp6";
|
groupId = "org.postgresql";
|
||||||
|
sha256 = "0w7sfi1gmzqhyhr4iq9znv8hff41xwwqcblkyd9ph0m34r0555hr";
|
||||||
|
inherit version;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ant jdk ];
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
buildPhase = "ant";
|
installPhase = ''
|
||||||
|
install -D $src/share/java/*_postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
|
||||||
installPhase =
|
|
||||||
''
|
|
||||||
mkdir -p $out/share/java
|
|
||||||
cp jars/*.jar $out/share/java
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user