diff --git a/pkgs/applications/kde/grantleetheme/default.nix b/pkgs/applications/kde/grantleetheme/default.nix index 2cc532d25104..14f4b26290c8 100644 --- a/pkgs/applications/kde/grantleetheme/default.nix +++ b/pkgs/applications/kde/grantleetheme/default.nix @@ -19,5 +19,12 @@ mkDerivation { postInstall = '' # added as an include directory by cmake files and fails to compile if it's missing mkdir -p "$dev/include/KF5" + + # This is a really disgusting hack, no idea how search paths work for kde, + # but apparently kde is looking in $out/$out rather than $out for this library. + # Having this symlink fixes kmail finding it and makes my html work (Yay!). + mkdir -p $out/$out/lib/grantlee/ + libpath=$(echo $out/lib/grantlee/*) + ln -s $libpath $out/$out/lib/grantlee/$(basename $libpath) ''; }