2021-12-16 14:12:28 +01:00
|
|
|
{lib, stdenv, fetchurl, unzip}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jtds";
|
|
|
|
version = "1.3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/jtds/${version}/${pname}-${version}-dist.zip";
|
|
|
|
sha256 = "sha256-eV0P8QdjfuHXzYssH8yHhynuH0Clg7MAece2Up3S9M0";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp jtds-*.jar $out/share/java/jtds-jdbc.jar
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Java (type 4) JDBC 3.0 driver for Microsoft SQL Server";
|
2023-01-21 22:41:12 +01:00
|
|
|
homepage = "https://jtds.sourceforge.net/";
|
2021-12-16 14:12:28 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|