Merge pull request #67594 from spencerjanssen/unixodbc-17.4.1.1

unixODBCDrivers.msodbcsql17: 17.2.0.1 -> 17.4.1.1
This commit is contained in:
Aaron Andersen 2019-08-27 20:54:06 -04:00 committed by GitHub
commit af71811487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, unixODBC, cmake, postgresql, mysql, mariadb, sqlite, zlib, libxml2, dpkg, lib, openssl, kerberos, curl, libuuid, autoPatchelfHook }:
{ fetchurl, stdenv, unixODBC, cmake, postgresql, mysql, mariadb, sqlite, zlib, libxml2, dpkg, lib, kerberos, curl, libuuid, autoPatchelfHook }:
# I haven't done any parameter tweaking.. So the defaults provided here might be bad
@ -125,16 +125,16 @@
version = "${versionMajor}.${versionMinor}.${versionAdditional}-1";
versionMajor = "17";
versionMinor = "2";
versionAdditional = "0.1";
versionMinor = "4";
versionAdditional = "1.1";
src = fetchurl {
url = "https://packages.microsoft.com/debian/9/prod/pool/main/m/msodbcsql17/msodbcsql${versionMajor}_${version}_amd64.deb";
sha256 = "1966ymbbk0jsacqwzi3dmhxv2n8hfgnpjsx3hr3n7s9d88chgpx5";
sha256 = "0jb16irr7qlgd2zshg0vyia7zqipd0pcvwfcr6z807pss1mnzj8w";
};
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ unixODBC dpkg openssl kerberos curl libuuid stdenv.cc.cc ];
buildInputs = [ unixODBC dpkg kerberos libuuid stdenv.cc.cc ];
unpackPhase = "dpkg -x $src ./";
buildPhase = "";
@ -142,8 +142,6 @@
installPhase = ''
mkdir -p $out
mkdir -p $out/lib
ln -s ${lib.getLib openssl}/lib/libssl.so.1.0.0 $out/lib/libssl.so.1.0.2
ln -s ${lib.getLib openssl}/lib/libcrypto.so.1.0.0 $out/lib/libcrypto.so.1.0.2
cp -r opt/microsoft/msodbcsql${versionMajor}/lib64 opt/microsoft/msodbcsql${versionMajor}/share $out/
'';