nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 mkDerivation,
3 lib,
4 kdepimTeam,
5 extra-cmake-modules,
6 kdoctools,
7 grantlee,
8 ki18n,
9 kiconthemes,
10 knewstuff,
11 kservice,
12 kxmlgui,
13 qtbase,
14}:
15
16mkDerivation {
17 pname = "grantleetheme";
18 meta = {
19 license = with lib.licenses; [
20 gpl2Plus
21 lgpl21Plus
22 fdl12Plus
23 ];
24 maintainers = kdepimTeam;
25 };
26 outputs = [
27 "out"
28 "dev"
29 ];
30 nativeBuildInputs = [
31 extra-cmake-modules
32 kdoctools
33 ];
34 buildInputs = [
35 grantlee
36 ki18n
37 kiconthemes
38 knewstuff
39 kservice
40 kxmlgui
41 qtbase
42 ];
43 propagatedBuildInputs = [
44 grantlee
45 kiconthemes
46 knewstuff
47 ];
48 postInstall = ''
49 # added as an include directory by cmake files and fails to compile if it's missing
50 mkdir -p "$dev/include/KF5"
51
52 # This is a really disgusting hack, no idea how search paths work for kde,
53 # but apparently kde is looking in $out/$out rather than $out for this library.
54 # Having this symlink fixes kmail finding it and makes my html work (Yay!).
55 mkdir -p $out/$out/lib/grantlee/
56 libpath=$(echo $out/lib/grantlee/*)
57 ln -s $libpath $out/$out/lib/grantlee/$(basename $libpath)
58 '';
59}