1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00

sqsh: fix build with freetds

This commit is contained in:
J. Neto 2021-05-12 04:58:25 -03:00
parent 4beb9ae883
commit 941c14f345

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 = ''