diff options
Diffstat (limited to 'pkgs/applications/kde/ark')
-rw-r--r-- | pkgs/applications/kde/ark/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/applications/kde/ark/default.nix b/pkgs/applications/kde/ark/default.nix new file mode 100644 index 000000000000..e1e25b2acf24 --- /dev/null +++ b/pkgs/applications/kde/ark/default.nix @@ -0,0 +1,47 @@ +{ + kdeApp, lib, config, kdeWrapper, + + extra-cmake-modules, kdoctools, makeWrapper, + + karchive, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, khtml, kio, + kservice, kpty, kwidgetsaddons, libarchive, + + # Archive tools + p7zip, unzipNLS, zip, + + # Unfree tools + unfreeEnableUnrar ? false, unrar, +}: + +let + unwrapped = + kdeApp { + name = "ark"; + nativeBuildInputs = [ + extra-cmake-modules kdoctools makeWrapper + ]; + propagatedBuildInputs = [ + khtml ki18n kio karchive kconfig kcrash kdbusaddons kiconthemes kservice + kpty kwidgetsaddons libarchive + ]; + postInstall = + let + PATH = + lib.makeBinPath + ([ p7zip unzipNLS 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 ]; + }; + }; +in +kdeWrapper +{ + inherit unwrapped; + targets = [ "bin/ark" ]; +} |