2016-10-17 11:32:05 +02:00
|
|
|
{
|
|
|
|
kdeDerivation, kdeWrapper, fetchFromGitHub, fetchurl, lib,
|
2017-02-26 13:49:15 +01:00
|
|
|
extra-cmake-modules, kdoctools,
|
2016-12-30 03:00:30 +01:00
|
|
|
baloo, kconfig, kfilemetadata, kinit, kirigami, knewstuff, plasma-framework
|
2016-10-17 11:32:05 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "peruse";
|
2016-12-30 03:00:30 +01:00
|
|
|
version = "1.2";
|
2016-10-17 11:32:05 +02:00
|
|
|
unarr = fetchFromGitHub {
|
|
|
|
owner = "zeniko";
|
|
|
|
repo = "unarr";
|
|
|
|
rev = "d1be8c43a82a4320306c8e835a86fdb7b2574ca7";
|
|
|
|
sha256 = "03ds5da69zipa25rsp76l6xqivrh3wcgygwyqa5x2rgcz3rjnlpr";
|
|
|
|
};
|
|
|
|
unwrapped = kdeDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/stable/${pname}/${name}.tar.xz";
|
2016-12-30 03:00:30 +01:00
|
|
|
sha256 = "1ik2627xynkichsq9x28rkczqn3l3p06q6vw5jdafdh3hisccmjq";
|
2016-10-17 11:32:05 +02:00
|
|
|
};
|
|
|
|
|
2017-02-26 13:49:15 +01:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2016-10-17 11:32:05 +02:00
|
|
|
|
2016-12-30 03:00:30 +01:00
|
|
|
propagatedBuildInputs = [ baloo kconfig kfilemetadata kinit kirigami knewstuff plasma-framework ];
|
|
|
|
|
|
|
|
pathsToLink = [ "/etc/xdg/peruse.knsrc"];
|
2016-10-17 11:32:05 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
2016-12-30 03:00:30 +01:00
|
|
|
rm -rf src/qtquick/karchive-rar/external/unarr
|
2016-10-17 11:32:05 +02:00
|
|
|
ln -s ${unarr} src/qtquick/karchive-rar/external/unarr
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-01-03 00:33:15 +01:00
|
|
|
in kdeWrapper {
|
|
|
|
inherit unwrapped;
|
2016-12-30 03:00:30 +01:00
|
|
|
targets = [ "bin/peruse" "bin/perusecreator" ];
|
2016-10-17 11:32:05 +02:00
|
|
|
}
|