mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
sqsh: fix build with freetds
This commit is contained in:
parent
4beb9ae883
commit
941c14f345
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user