From 2f8f18986ae661dd73f6c74dfcbbdb276a5354f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claes=20Wallin=20=28=E9=9F=8B=E5=98=89=E8=AA=A0=29?= Date: Fri, 23 Feb 2018 22:49:52 +0800 Subject: [PATCH] racket: on darwin, use libiconv Without libiconv, racket doesn't support UTF-16, and this breaks one of the tests. Closes #34576 --- pkgs/development/interpreters/racket/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/interpreters/racket/default.nix b/pkgs/development/interpreters/racket/default.nix index e3aa3e8a6f5c..61e50253e9ad 100644 --- a/pkgs/development/interpreters/racket/default.nix +++ b/pkgs/development/interpreters/racket/default.nix @@ -1,6 +1,8 @@ { stdenv, fetchurl, makeFontsConf, makeWrapper , cairo, coreutils, fontconfig, freefont_ttf -, glib, gmp, gtk2, libedit, libffi, libjpeg +, glib, gmp, gtk2, libedit, libffi +, libiconv +, libjpeg , libpng, libtool, mpfr, openssl, pango, poppler , readline, sqlite , disableDocs ? false @@ -54,7 +56,7 @@ stdenv.mkDerivation rec { ]; buildInputs = [ fontconfig libffi libtool makeWrapper sqlite ] - ++ stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation ]; + ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv CoreFoundation ]; preConfigure = '' unset AR @@ -92,6 +94,6 @@ stdenv.mkDerivation rec { homepage = http://racket-lang.org/; license = licenses.lgpl3; maintainers = with maintainers; [ kkallio henrytill vrthra ]; - platforms = [ "x86_64-linux" ]; + platforms = [ "x86_64-darwin" "x86_64-linux" ]; }; }