Merge pull request #122688 from jnetod/zhf-sqsh

sqsh: fix build with freetds

authored by

Robert Scott and committed by
GitHub
fd677c7b 808d8897

+11 -3
+11 -3
pkgs/development/tools/sqsh/default.nix
··· 14 14 15 15 preConfigure = '' 16 16 export SYBASE=${freetds} 17 - 18 - substituteInPlace src/cmd_connect.c \ 19 - --replace CS_TDS_80 CS_TDS_73 20 17 '' + lib.optionalString stdenv.isDarwin '' 21 18 substituteInPlace configure --replace "libct.so" "libct.dylib" 22 19 ''; ··· 26 23 buildInputs = [ freetds readline libiconv ]; 27 24 28 25 nativeBuildInputs = [ autoreconfHook ]; 26 + 27 + patches = [ 28 + (fetchurl { 29 + # https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/databases/sqsh/patches/patch-src_cmd_connect_c 30 + name = "patch-src_cmd_connect_c.patch"; 31 + url = "https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/databases/sqsh/patches/patch-src_cmd_connect_c?rev=1.2&content-type=text/plain"; 32 + sha256 = "1dz97knr2h0a0ca1vq2mx6h8s3ns9jb1a0qraa4wkfmcdi3aqw0j"; 33 + }) 34 + ]; 35 + 36 + patchFlags = [ "-p0" ]; 29 37 30 38 meta = with lib; { 31 39 description = "Command line tool for querying Sybase/MSSQL databases";