Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
racket: fix drracket crashes on file dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Jan 17, 2019
1 parent 3de6eff commit 4f9e46a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions pkgs/development/interpreters/racket/default.nix
Expand Up @@ -10,6 +10,7 @@
, disableDocs ? false
, CoreFoundation
, gsettings-desktop-schemas
, wrapGAppsHook
}:

let
Expand Down Expand Up @@ -59,7 +60,9 @@ stdenv.mkDerivation rec {
(stdenv.lib.optionalString stdenv.isDarwin "-framework CoreFoundation")
];

buildInputs = [ fontconfig libffi libtool makeWrapper sqlite gsettings-desktop-schemas gtk3 ]
nativeBuildInputs = [ wrapGAppsHook ];

buildInputs = [ fontconfig libffi libtool sqlite gsettings-desktop-schemas gtk3 ]
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv CoreFoundation ];

preConfigure = ''
Expand All @@ -69,6 +72,8 @@ stdenv.mkDerivation rec {
done
mkdir src/build
cd src/build
gappsWrapperArgs+=("--prefix" "LD_LIBRARY_PATH" ":" $LD_LIBRARY_PATH)
'';

shared = if stdenv.isDarwin then "dylib" else "shared";
Expand All @@ -80,13 +85,6 @@ stdenv.mkDerivation rec {

enableParallelBuilding = false;

postInstall = ''
for p in $(ls $out/bin/) ; do
wrapProgram $out/bin/$p \
--prefix LD_LIBRARY_PATH ":" "${LD_LIBRARY_PATH}" \
--prefix XDG_DATA_DIRS ":" "$GSETTINGS_SCHEMAS_PATH";
done
'';

meta = with stdenv.lib; {
description = "A programmable programming language";
Expand Down

0 comments on commit 4f9e46a

Please sign in to comment.