d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
27 lines
597 B
Nix
27 lines
597 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mssql-jdbc";
|
|
version = "12.4.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Microsoft/mssql-jdbc/releases/download/v${version}/mssql-jdbc-${version}.jre8.jar";
|
|
sha256 = "sha256-j9y2czUOVKJigtOsv/B+wQYSVPoKPbb5hLvv0Q3suzs=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/java
|
|
cp $src $out/share/java/mssql-jdbc.jar
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|