summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorobadz <dav-github@odav.org>2015-10-10 15:01:36 +0100
committerPeter Simons <simons@cryp.to>2016-03-18 07:52:36 +0100
commita0f0a7191fa5eb20343d2b3ac8788592e029bb1f (patch)
tree8bc119af5ff9fb4ed881dc738f08611280d6d950 /pkgs/development/haskell-modules
parentfe5d98d4c22b9b4b60419f3dfa6e8c427f60dd6c (diff)
downloadnixpkgs-a0f0a7191fa5eb20343d2b3ac8788592e029bb1f.tar
nixpkgs-a0f0a7191fa5eb20343d2b3ac8788592e029bb1f.tar.gz
nixpkgs-a0f0a7191fa5eb20343d2b3ac8788592e029bb1f.tar.bz2
nixpkgs-a0f0a7191fa5eb20343d2b3ac8788592e029bb1f.tar.lz
nixpkgs-a0f0a7191fa5eb20343d2b3ac8788592e029bb1f.tar.xz
nixpkgs-a0f0a7191fa5eb20343d2b3ac8788592e029bb1f.tar.zst
nixpkgs-a0f0a7191fa5eb20343d2b3ac8788592e029bb1f.zip
leksah: add the appropriate deps to enable running
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 34ed3bb19db..b4bd2b6efa8 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -643,7 +643,19 @@ self: super: {
   spaceprobe = addBuildTool super.spaceprobe self.llvmPackages.llvm;
 
   # Tries to run GUI in tests
-  leksah = dontCheck super.leksah;
+  leksah = dontCheck (overrideCabal super.leksah (drv: {
+    executableSystemDepends = (drv.executableSystemDepends or []) ++ (with pkgs; [
+      gnome3.defaultIconTheme # Fix error: Icon 'window-close' not present in theme ...
+      wrapGAppsHook           # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
+      gtk3                    # Fix error: GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed
+    ]);
+    postPatch = (drv.postPatch or "") + ''
+      for f in src/IDE/Leksah.hs src/IDE/Utils/ServerConnection.hs
+      do
+        substituteInPlace "$f" --replace "\"leksah-server\"" "\"${self.leksah-server}/bin/leksah-server\""
+      done
+    '';
+  }));
 
   # Patch to consider NIX_GHC just like xmonad does
   dyre = appendPatch super.dyre ./patches/dyre-nix.patch;