tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
sqsh: fix build with freetds
J. Neto
4 years ago
941c14f3
4beb9ae8
+11
-3
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
sqsh
default.nix
+11
-3
pkgs/development/tools/sqsh/default.nix
···
14
14
15
15
preConfigure = ''
16
16
export SYBASE=${freetds}
17
17
-
18
18
-
substituteInPlace src/cmd_connect.c \
19
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
26
+
27
27
+
patches = [
28
28
+
(fetchurl {
29
29
+
# https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/databases/sqsh/patches/patch-src_cmd_connect_c
30
30
+
name = "patch-src_cmd_connect_c.patch";
31
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
32
+
sha256 = "1dz97knr2h0a0ca1vq2mx6h8s3ns9jb1a0qraa4wkfmcdi3aqw0j";
33
33
+
})
34
34
+
];
35
35
+
36
36
+
patchFlags = [ "-p0" ];
29
37
30
38
meta = with lib; {
31
39
description = "Command line tool for querying Sybase/MSSQL databases";