diff options
author | Thomas Tuegel <ttuegel@mailbox.org> | 2017-05-16 10:56:41 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@mailbox.org> | 2017-06-18 08:43:39 -0500 |
commit | be7b7d908f82e8ab16c43ffd0e240addd6f4018a (patch) | |
tree | 81d875bcec94de6d94ce20725393d9c35f1c165a /pkgs/applications/kde/ark | |
parent | 945758f96030ee7762ccdab32a3ffddd028b37b6 (diff) |
Remove kdeWrapper
Diffstat (limited to 'pkgs/applications/kde/ark')
-rw-r--r-- | pkgs/applications/kde/ark/default.nix | 57 |
1 files changed, 24 insertions, 33 deletions
diff --git a/pkgs/applications/kde/ark/default.nix b/pkgs/applications/kde/ark/default.nix index d7a6ee2bdc7bf..f52f30c791771 100644 --- a/pkgs/applications/kde/ark/default.nix +++ b/pkgs/applications/kde/ark/default.nix @@ -1,7 +1,7 @@ { - mkDerivation, lib, config, kdeWrapper, + mkDerivation, lib, config, wrapGAppsHook, - extra-cmake-modules, kdoctools, makeWrapper, + extra-cmake-modules, kdoctools, karchive, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, khtml, kio, kservice, kpty, kwidgetsaddons, libarchive, kitemmodels, @@ -13,35 +13,26 @@ unfreeEnableUnrar ? false, unrar, }: -let - unwrapped = - mkDerivation { - name = "ark"; - nativeBuildInputs = [ - extra-cmake-modules kdoctools makeWrapper - ]; - propagatedBuildInputs = [ - khtml ki18n kio karchive kconfig kcrash kdbusaddons kiconthemes kservice - kpty kwidgetsaddons libarchive kitemmodels - ]; - 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" ]; +mkDerivation { + name = "ark"; + nativeBuildInputs = [ + extra-cmake-modules kdoctools wrapGAppsHook + ]; + propagatedBuildInputs = [ + khtml ki18n kio karchive kconfig kcrash kdbusaddons kiconthemes kservice + kpty kwidgetsaddons libarchive kitemmodels + ]; + preFixup = + let + PATH = + lib.makeBinPath + ([ p7zip unzipNLS zip ] ++ lib.optional unfreeEnableUnrar unrar); + in '' + gappsWrapperArgs+=(--prefix PATH : "${PATH}") + ''; + meta = { + license = with lib.licenses; + [ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree; + maintainers = [ lib.maintainers.ttuegel ]; + }; } |