nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 autoreconfHook, 6 pkg-config, 7 openssl, 8 odbcSupport ? true, 9 unixODBC ? null, 10}: 11 12assert odbcSupport -> unixODBC != null; 13 14# Work is in progress to move to cmake so revisit that later 15 16stdenv.mkDerivation rec { 17 pname = "freetds"; 18 version = "1.5.6"; 19 20 src = fetchurl { 21 url = "https://www.freetds.org/files/stable/${pname}-${version}.tar.bz2"; 22 hash = "sha256-2twI5prvFFI/2u4JFw1Z2vG2QT6NWFjQnJSWZ0ugjFc="; 23 }; 24 25 patches = [ 26 ./gettext-0.25.patch 27 ]; 28 29 buildInputs = [ 30 openssl 31 ] 32 ++ lib.optional odbcSupport unixODBC; 33 34 nativeBuildInputs = [ 35 autoreconfHook 36 pkg-config 37 ]; 38 39 meta = { 40 description = "Libraries to natively talk to Microsoft SQL Server and Sybase databases"; 41 homepage = "https://www.freetds.org"; 42 changelog = "https://github.com/FreeTDS/freetds/releases/tag/v${version}"; 43 license = lib.licenses.lgpl2; 44 maintainers = with lib.maintainers; [ peterhoeg ]; 45 platforms = lib.platforms.all; 46 }; 47}