From a12cda87941392a2118106c870116ca3e5a71b75 Mon Sep 17 00:00:00 2001 From: Stewart Mackenzie Date: Wed, 6 Jun 2018 21:04:42 +0800 Subject: [PATCH] racket: use latest gtk (gtk2 -> gkt3) (#41557) --- pkgs/development/interpreters/racket/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/interpreters/racket/default.nix b/pkgs/development/interpreters/racket/default.nix index f25d2933ab7f..36d1a8326e70 100644 --- a/pkgs/development/interpreters/racket/default.nix +++ b/pkgs/development/interpreters/racket/default.nix @@ -1,10 +1,11 @@ { stdenv, fetchurl, makeFontsConf, makeWrapper , cairo, coreutils, fontconfig, freefont_ttf -, glib, gmp, gtk2, libedit, libffi, libjpeg +, glib, gmp, gtk3, libedit, libffi, libjpeg , libpng, libtool, mpfr, openssl, pango, poppler , readline, sqlite , disableDocs ? false , CoreFoundation +, gsettings_desktop_schemas }: let @@ -18,7 +19,8 @@ let fontconfig glib gmp - gtk2 + gtk3 + gsettings_desktop_schemas libedit libjpeg libpng @@ -53,7 +55,7 @@ stdenv.mkDerivation rec { (stdenv.lib.optionalString stdenv.isDarwin "-framework CoreFoundation") ]; - buildInputs = [ fontconfig libffi libtool makeWrapper sqlite ] + buildInputs = [ fontconfig libffi libtool makeWrapper sqlite gsettings_desktop_schemas gtk3 ] ++ stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation ]; preConfigure = '' @@ -76,7 +78,9 @@ stdenv.mkDerivation rec { postInstall = '' for p in $(ls $out/bin/) ; do - wrapProgram $out/bin/$p --prefix LD_LIBRARY_PATH ":" "${LD_LIBRARY_PATH}"; + wrapProgram $out/bin/$p \ + --prefix LD_LIBRARY_PATH ":" "${LD_LIBRARY_PATH}" \ + --prefix XDG_DATA_DIRS ":" "$GSETTINGS_SCHEMAS_PATH"; done '';