Remove kdeWrapper

This commit is contained in:
Thomas Tuegel
2017-06-18 08:43:39 -05:00
parent 945758f960
commit be7b7d908f
44 changed files with 665 additions and 987 deletions
+24 -33
View File
@@ -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 ];
};
}