mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 03:25:02 +00:00
44 lines
973 B
Nix
44 lines
973 B
Nix
{
|
|
kdeApp, lib, kdeWrapper,
|
|
|
|
extra-cmake-modules, kdoctools, makeWrapper,
|
|
|
|
karchive, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, khtml, kio,
|
|
kservice, kpty, kwidgetsaddons, libarchive,
|
|
|
|
# Archive tools
|
|
p7zip, unrar, unzipNLS, zip
|
|
}:
|
|
|
|
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 unrar unzipNLS zip
|
|
];
|
|
in ''
|
|
wrapProgram "$out/bin/ark" \
|
|
--prefix PATH : "${PATH}"
|
|
'';
|
|
meta = {
|
|
license = with lib.licenses; [ gpl2 lgpl3 ];
|
|
maintainers = [ lib.maintainers.ttuegel ];
|
|
};
|
|
};
|
|
in
|
|
kdeWrapper
|
|
{
|
|
inherit unwrapped;
|
|
targets = [ "bin/ark" ];
|
|
}
|