summary refs log tree commit diff
path: root/pkgs/applications/kde/ark/default.nix
blob: 598857f2e70d3d46e7f772cc3f4ebe3550e00c40 (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
36
37
{
  mkDerivation, lib, makeWrapper,

  extra-cmake-modules, kdoctools,

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

  # Archive tools
  p7zip, unzip, zip,

  # Unfree tools
  unfreeEnableUnrar ? false, unrar,
}:

mkDerivation {
  name = "ark";
  nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper ];
  propagatedBuildInputs = [
    karchive kconfig kcrash kdbusaddons khtml ki18n kiconthemes kio kitemmodels
    kparts kpty kservice kwidgetsaddons libarchive
  ];
  outputs = [ "out" "dev" ];
  postFixup =
    let
      PATH =
        lib.makeBinPath
        ([ p7zip unzip zip ] ++ lib.optional unfreeEnableUnrar unrar);
    in ''
      wrapProgram "$out/bin/ark" --prefix PATH : "${PATH}"
    '';
  meta = {
    license = with lib.licenses;
      [ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree;
    maintainers = [ lib.maintainers.ttuegel ];
  };
}