mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
35 lines
822 B
Nix
35 lines
822 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;
|
|
};
|
|
}
|