3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/freetds/default.nix
Franz Pletz aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00

35 lines
824 B
Nix

{ stdenv, fetchurl
, odbcSupport ? false, unixODBC ? null }:
assert odbcSupport -> unixODBC != null;
stdenv.mkDerivation rec {
name = "freetds-0.91";
src = fetchurl {
url = "http://mirrors.ibiblio.org/freetds/stable/${name}.tar.gz";
sha256 = "0r946axzxs0czsmr7283w7vmk5jx3jnxxc32d2ncxsrsh2yli0ba";
};
hardeningDisable = [ "format" ];
buildInputs = stdenv.lib.optional odbcSupport [ unixODBC ];
configureFlags = stdenv.lib.optionalString odbcSupport "--with-odbc=${unixODBC}";
doDist = true;
distPhase = ''
touch $out/include/tds.h
touch $out/lib/libtds.a
'';
meta = {
description =
"Libraries to natively talk to Microsoft SQL Server and Sybase databases";
homepage = "http://www.freetds.org";
license = "lgpl";
platforms = stdenv.lib.platforms.all;
};
}