about summary refs log tree commit diff
path: root/pkgs/desktops/kde-5/applications/ark/default.nix
blob: 0af13b645e15a457138699267bcc89a0b8334942 (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
32
33
34
35
{
  kdeApp, lib,

  extra-cmake-modules, kdoctools, makeQtWrapper,

  karchive, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, khtml, kio,
  kservice, kpty, kwidgetsaddons, libarchive,

  # Archive tools
  p7zip, unrar, unzipNLS, zip
}:

kdeApp {
  name = "ark";
  nativeBuildInputs = [
    extra-cmake-modules kdoctools makeQtWrapper
  ];
  propagatedBuildInputs = [
    khtml ki18n kio karchive kconfig kcrash kdbusaddons kiconthemes kservice
    kpty kwidgetsaddons libarchive
  ];
  postInstall =
    let
      PATH = lib.makeBinPath [
        p7zip unrar unzipNLS zip
      ];
    in ''
      wrapQtProgram "$out/bin/ark" \
          --prefix PATH : "${PATH}"
    '';
  meta = {
    license = with lib.licenses; [ gpl2 lgpl3 ];
    maintainers = [ lib.maintainers.ttuegel ];
  };
}