about summary refs log tree commit diff
path: root/nixpkgs/pkgs/kde/gear/akonadi/default.nix
blob: 64966c4fad58366968f7c02a82b684846f61186f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  lib,
  mkKdeDerivation,
  qttools,
  accounts-qt,
  kaccounts-integration,
  shared-mime-info,
  xz,
  mariadb,
}:
mkKdeDerivation {
  pname = "akonadi";

  patches = [
    # Always regenerate MySQL config, as the store paths don't have accurate timestamps
    ./ignore-mysql-config-timestamp.patch
  ];

  extraCmakeFlags = [
    "-DMYSQLD_SCRIPTS_PATH=${lib.getBin mariadb}/bin"
  ];

  extraNativeBuildInputs = [qttools shared-mime-info];
  extraBuildInputs = [kaccounts-integration accounts-qt xz mariadb];

  # Hardcoded as a QString, which is UTF-16 so Nix can't pick it up automatically
  postFixup = ''
    mkdir -p $out/nix-support
    echo "${mariadb}" > $out/nix-support/depends
  '';
}