Merge pull request #122688 from jnetod/zhf-sqsh

sqsh: fix build with freetds
This commit is contained in:
Robert Scott 2021-05-12 19:51:27 +01:00 committed by GitHub
commit fd677c7bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,9 +14,6 @@ in stdenv.mkDerivation rec {
preConfigure = ''
export SYBASE=${freetds}
substituteInPlace src/cmd_connect.c \
--replace CS_TDS_80 CS_TDS_73
'' + lib.optionalString stdenv.isDarwin ''
substituteInPlace configure --replace "libct.so" "libct.dylib"
'';
@ -27,6 +24,17 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ];
patches = [
(fetchurl {
# https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/databases/sqsh/patches/patch-src_cmd_connect_c
name = "patch-src_cmd_connect_c.patch";
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";
sha256 = "1dz97knr2h0a0ca1vq2mx6h8s3ns9jb1a0qraa4wkfmcdi3aqw0j";
})
];
patchFlags = [ "-p0" ];
meta = with lib; {
description = "Command line tool for querying Sybase/MSSQL databases";
longDescription = ''