mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
28 lines
597 B
Nix
28 lines
597 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mssql-jdbc";
|
|
version = "12.8.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Microsoft/mssql-jdbc/releases/download/v${version}/mssql-jdbc-${version}.jre8.jar";
|
|
sha256 = "sha256-mzSPFlv6MUtKNzZvRBy2khEa2YUEiH4xMR0EYXk3AHY=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|