unixODBCDrivers.msodbcsql17: init at 17.2.0.1 (#44140)
* unixODBCDrivers.msodbcsql17: init at 17.2.0.1 * unixODBCDrivers.msodbcsql17: use autoPatchelfHook * unixODBCDrivers.msodbcsql17: use getLib
This commit is contained in:
parent
8fe1620513
commit
cbaac40623
@ -1,4 +1,4 @@
|
|||||||
{ fetchurl, stdenv, unixODBC, cmake, postgresql, mysql55, mariadb, sqlite, zlib, libxml2 }:
|
{ fetchurl, stdenv, unixODBC, cmake, postgresql, mysql55, mariadb, sqlite, zlib, libxml2, dpkg, lib, openssl, kerberos, curl, libuuid, autoPatchelfHook }:
|
||||||
|
|
||||||
# I haven't done any parameter tweaking.. So the defaults provided here might be bad
|
# I haven't done any parameter tweaking.. So the defaults provided here might be bad
|
||||||
|
|
||||||
@ -119,4 +119,45 @@
|
|||||||
maintainers = with maintainers; [ vlstill ];
|
maintainers = with maintainers; [ vlstill ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
msodbcsql17 = stdenv.mkDerivation rec {
|
||||||
|
name = "msodbcsql17-${version}";
|
||||||
|
version = "${versionMajor}.${versionMinor}.${versionAdditional}-1";
|
||||||
|
|
||||||
|
versionMajor = "17";
|
||||||
|
versionMinor = "2";
|
||||||
|
versionAdditional = "0.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://packages.microsoft.com/debian/9/prod/pool/main/m/msodbcsql17/msodbcsql${versionMajor}_${version}_amd64.deb";
|
||||||
|
sha256 = "1966ymbbk0jsacqwzi3dmhxv2n8hfgnpjsx3hr3n7s9d88chgpx5";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
buildInputs = [ unixODBC dpkg openssl kerberos curl libuuid stdenv.cc.cc ];
|
||||||
|
|
||||||
|
unpackPhase = "dpkg -x $src ./";
|
||||||
|
buildPhase = "";
|
||||||
|
|
||||||
|
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/
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
fancyName = "ODBC Driver 17 for SQL Server";
|
||||||
|
driver = "lib/libmsodbcsql-${versionMajor}.${versionMinor}.so.${versionAdditional}";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "ODBC Driver 17 for SQL Server";
|
||||||
|
homepage = https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-2017;
|
||||||
|
license = licenses.unfree;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ spencerjanssen ];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user