nixpkgs/pkgs/desktops/kde-5/frameworks/kdelibs4support/nix-kde-include-dir.patch
Thomas Tuegel 3eb9b19d3b kde5.frameworks: remove version from directory name
Now that we keep only one version of Frameworks in Nixpkgs, it is not
necessary to version the directory which stores the Nix expressions.
2016-07-13 13:54:58 -05:00

14 lines
602 B
Diff

Index: kdelibs4support-5.18.0/src/kdecore/kstandarddirs.cpp
===================================================================
--- kdelibs4support-5.18.0.orig/src/kdecore/kstandarddirs.cpp
+++ kdelibs4support-5.18.0/src/kdecore/kstandarddirs.cpp
@@ -292,7 +292,7 @@ static QString relativeInstallPath(const
return QFile::decodeName(ICON_INSTALL_DIR "/");
}
if (strcmp("include", type) == 0) {
- return QFile::decodeName(INCLUDE_INSTALL_DIR "/");
+ return QFile::decodeName(qgetenv("NIX_KDE_INCLUDE_DIR"));
}
break;
case 'l':