summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJosef Kemetmüller <josef.kemetmueller@gmail.com>2018-05-02 22:41:06 +0200
committerRobin Gloster <mail@glob.in>2018-05-03 00:38:32 +0200
commit8936f8f242fd268f0ff8d9a8e99f4310c64ffdb5 (patch)
treea556ea052c7236c51e9814c05a7ea482cfca6370 /pkgs
parent6fc670b00d36300c5b000d5c735f2796810a4c0b (diff)
downloadnixpkgs-8936f8f242fd268f0ff8d9a8e99f4310c64ffdb5.tar
nixpkgs-8936f8f242fd268f0ff8d9a8e99f4310c64ffdb5.tar.gz
nixpkgs-8936f8f242fd268f0ff8d9a8e99f4310c64ffdb5.tar.bz2
nixpkgs-8936f8f242fd268f0ff8d9a8e99f4310c64ffdb5.tar.lz
nixpkgs-8936f8f242fd268f0ff8d9a8e99f4310c64ffdb5.tar.xz
nixpkgs-8936f8f242fd268f0ff8d9a8e99f4310c64ffdb5.tar.zst
nixpkgs-8936f8f242fd268f0ff8d9a8e99f4310c64ffdb5.zip
sqsh: Fix darwin build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/sqsh/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/tools/sqsh/default.nix b/pkgs/development/tools/sqsh/default.nix
index f7628cf181c..d1b1c84a313 100644
--- a/pkgs/development/tools/sqsh/default.nix
+++ b/pkgs/development/tools/sqsh/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, autoreconfHook, freetds, readline }:
+{ stdenv, fetchurl, autoreconfHook, freetds, readline, libiconv }:
 
 let
   mainVersion = "2.5";
@@ -17,11 +17,13 @@ in stdenv.mkDerivation rec {
 
     substituteInPlace src/cmd_connect.c \
       --replace CS_TDS_80 CS_TDS_73
+  '' + stdenv.lib.optionalString stdenv.isDarwin ''
+    substituteInPlace configure --replace "libct.so" "libct.dylib"
   '';
 
   enableParallelBuilding = true;
 
-  buildInputs = [ freetds readline ];
+  buildInputs = [ freetds readline libiconv ];
 
   nativeBuildInputs = [ autoreconfHook ];