lol

Merge pull request #31224 from peterhoeg/u/tds

freetds: 0.91 -> 1.00.70

authored by

Peter Hoeg and committed by
GitHub
9b9dacb5 5de89116

+43 -36
+1
pkgs/applications/office/calligra/2.nix
··· 51 51 maintainers = with maintainers; [ phreedom ebzzry ]; 52 52 inherit (kdelibs4.meta) platforms; 53 53 license = licenses.gpl2; 54 + broken = true; 54 55 }; 55 56 }
+20 -19
pkgs/development/libraries/freetds/default.nix
··· 1 - { stdenv, fetchurl 1 + { stdenv, fetchurl, autoreconfHook, pkgconfig 2 + , openssl 2 3 , odbcSupport ? false, unixODBC ? null }: 3 4 4 5 assert odbcSupport -> unixODBC != null; 5 6 6 7 stdenv.mkDerivation rec { 7 - name = "freetds-0.91"; 8 + name = "freetds-${version}"; 9 + version = "1.00.70"; 8 10 9 11 src = fetchurl { 10 - url = "http://mirrors.ibiblio.org/freetds/stable/${name}.tar.gz"; 11 - sha256 = "0r946axzxs0czsmr7283w7vmk5jx3jnxxc32d2ncxsrsh2yli0ba"; 12 + url = "http://www.freetds.org/files/stable/${name}.tar.bz2"; 13 + sha256 = "1ydh0c89nb6wh6wakbkqad7mdwpymygvgbcrk8c2mp7abgv1jqzp"; 12 14 }; 13 15 14 - hardeningDisable = [ "format" ]; 16 + configureFlags = [ 17 + "--with-tdsver=7.3" 18 + ]; 15 19 16 - buildInputs = stdenv.lib.optional odbcSupport [ unixODBC ]; 20 + buildInputs = [ 21 + openssl 22 + ] ++ stdenv.lib.optional odbcSupport unixODBC; 17 23 18 - configureFlags = stdenv.lib.optionalString odbcSupport "--with-odbc=${unixODBC}"; 24 + nativeBuildInputs = [ autoreconfHook pkgconfig ]; 19 25 20 - doDist = true; 26 + enableParallelBuilding = true; 21 27 22 - distPhase = '' 23 - touch $out/include/tds.h 24 - touch $out/lib/libtds.a 25 - ''; 26 - 27 - meta = { 28 - description = 29 - "Libraries to natively talk to Microsoft SQL Server and Sybase databases"; 30 - homepage = http://www.freetds.org; 31 - license = "lgpl"; 32 - platforms = stdenv.lib.platforms.all; 28 + meta = with stdenv.lib; { 29 + description = "Libraries to natively talk to Microsoft SQL Server and Sybase databases"; 30 + homepage = http://www.freetds.org; 31 + license = licenses.lgpl2; 32 + maintainers = with maintainers; [ peterhoeg ]; 33 + platforms = platforms.all; 33 34 }; 34 35 }
+22 -17
pkgs/development/tools/sqsh/default.nix
··· 1 - { stdenv, fetchurl, freetds, readline }: 1 + { stdenv, fetchurl, autoreconfHook, freetds, readline }: 2 2 3 - stdenv.mkDerivation rec { 4 - version = "2.5.16.1"; 3 + let 4 + mainVersion = "2.5"; 5 + 6 + in stdenv.mkDerivation rec { 5 7 name = "sqsh-${version}"; 8 + version = "${mainVersion}.16.1"; 6 9 7 10 src = fetchurl { 8 - url = "http://www.mirrorservice.org/sites/downloads.sourceforge.net/s/sq/sqsh/sqsh/sqsh-2.5/${name}.tgz"; 11 + url = "mirror://sourceforge/sqsh/sqsh/sqsh-${mainVersion}/${name}.tgz"; 9 12 sha256 = "1wi0hdmhk7l8nrz4j3kaa177mmxyklmzhj7sq1gj4q6fb8v1yr6n"; 10 13 }; 11 14 12 - preConfigure = 13 - '' 15 + preConfigure = '' 14 16 export SYBASE=${freetds} 15 - ''; 17 + 18 + substituteInPlace src/cmd_connect.c \ 19 + --replace CS_TDS_80 CS_TDS_73 20 + ''; 21 + 22 + enableParallelBuilding = true; 16 23 17 - buildInputs = [ 18 - freetds 19 - readline 20 - ]; 24 + buildInputs = [ freetds readline ]; 25 + 26 + nativeBuildInputs = [ autoreconfHook ]; 21 27 22 - meta = { 28 + meta = with stdenv.lib; { 23 29 description = "Command line tool for querying Sybase/MSSQL databases"; 24 - longDescription = 25 - '' 30 + longDescription = '' 26 31 Sqsh (pronounced skwish) is short for SQshelL (pronounced s-q-shell), 27 32 it is intended as a replacement for the venerable 'isql' program supplied 28 33 by Sybase. 29 - ''; 30 - homepage = http://www.cs.washington.edu/~rose/sqsh/sqsh.html; 31 - platforms = stdenv.lib.platforms.all; 34 + ''; 35 + homepage = http://sourceforge.net/projects/sqsh/; 36 + platforms = platforms.all; 32 37 }; 33 38 }