2016-10-17 09:32:05 +00:00
|
|
|
{
|
2017-05-16 15:56:41 +00:00
|
|
|
mkDerivation, fetchFromGitHub, fetchurl, lib,
|
|
|
|
extra-cmake-modules, kdoctools, wrapGAppsHook,
|
2017-07-09 02:25:37 +00:00
|
|
|
baloo, karchive, kconfig, kcrash, kfilemetadata, kinit, kirigami, knewstuff, plasma-framework
|
2016-10-17 09:32:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "peruse";
|
2016-12-30 02:00:30 +00:00
|
|
|
version = "1.2";
|
2016-10-17 09:32:05 +00:00
|
|
|
unarr = fetchFromGitHub {
|
|
|
|
owner = "zeniko";
|
|
|
|
repo = "unarr";
|
|
|
|
rev = "d1be8c43a82a4320306c8e835a86fdb7b2574ca7";
|
|
|
|
sha256 = "03ds5da69zipa25rsp76l6xqivrh3wcgygwyqa5x2rgcz3rjnlpr";
|
|
|
|
};
|
2017-05-16 15:56:41 +00:00
|
|
|
in mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-10-17 09:32:05 +00:00
|
|
|
|
2017-05-16 15:56:41 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/stable/${pname}/${name}.tar.xz";
|
|
|
|
sha256 = "1ik2627xynkichsq9x28rkczqn3l3p06q6vw5jdafdh3hisccmjq";
|
|
|
|
};
|
2016-10-17 09:32:05 +00:00
|
|
|
|
2017-05-16 15:56:41 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
2016-12-30 02:00:30 +00:00
|
|
|
|
2017-07-09 02:25:37 +00:00
|
|
|
propagatedBuildInputs = [ baloo karchive kconfig kcrash kfilemetadata kinit kirigami knewstuff plasma-framework ];
|
2016-10-17 09:32:05 +00:00
|
|
|
|
2017-05-16 15:56:41 +00:00
|
|
|
pathsToLink = [ "/etc/xdg/peruse.knsrc"];
|
2016-10-17 09:32:05 +00:00
|
|
|
|
2017-05-16 15:56:41 +00:00
|
|
|
preConfigure = ''
|
|
|
|
rm -rf src/qtquick/karchive-rar/external/unarr
|
|
|
|
ln -s ${unarr} src/qtquick/karchive-rar/external/unarr
|
|
|
|
'';
|
2016-10-17 09:32:05 +00:00
|
|
|
|
2017-05-16 15:56:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2016-10-17 09:32:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|