2021-11-16 16:31:56 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2019-05-05 02:22:15 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mssql-jdbc";
|
|
|
|
version = "7.2.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-16 16:31:56 +01:00
|
|
|
url = "https://github.com/Microsoft/mssql-jdbc/releases/download/v${version}/mssql-jdbc-${version}.jre8.jar";
|
2019-05-05 02:22:15 +02:00
|
|
|
sha256 = "09psxjy1v3khq8lcq6h9mbgyijsgawf0z2qryk1l91ypnwl8s3pg";
|
|
|
|
};
|
|
|
|
|
2021-11-16 16:31:56 +01:00
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp $src $out/share/java/mssql-jdbc.jar
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2019-05-05 02:22:15 +02:00
|
|
|
meta = {
|
2021-01-15 08:07:56 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2019-05-05 02:22:15 +02:00
|
|
|
};
|
|
|
|
}
|