sqsh: fix build with freetds
This commit is contained in:
parent
4beb9ae883
commit
941c14f345
|
@ -14,9 +14,6 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export SYBASE=${freetds}
|
export SYBASE=${freetds}
|
||||||
|
|
||||||
substituteInPlace src/cmd_connect.c \
|
|
||||||
--replace CS_TDS_80 CS_TDS_73
|
|
||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace configure --replace "libct.so" "libct.dylib"
|
substituteInPlace configure --replace "libct.so" "libct.dylib"
|
||||||
'';
|
'';
|
||||||
|
@ -27,6 +24,17 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
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; {
|
meta = with lib; {
|
||||||
description = "Command line tool for querying Sybase/MSSQL databases";
|
description = "Command line tool for querying Sybase/MSSQL databases";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|
Loading…
Reference in a new issue