2016-10-17 11:32:05 +02:00
|
|
|
{
|
2017-05-16 17:56:41 +02:00
|
|
|
mkDerivation, fetchFromGitHub, fetchurl, lib,
|
|
|
|
extra-cmake-modules, kdoctools, wrapGAppsHook,
|
2018-04-16 10:14:26 +02:00
|
|
|
baloo, karchive, kconfig, kcrash, kfilemetadata, kinit, kirigami2, knewstuff, plasma-framework
|
2016-10-17 11:32:05 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "peruse";
|
2018-04-16 10:14:26 +02:00
|
|
|
version = "1.2.20180219";
|
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
in mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-10-17 11:32:05 +02:00
|
|
|
|
2018-04-16 10:14:26 +02:00
|
|
|
# The last formal release from 2016 uses kirigami1 which is deprecated
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KDE";
|
|
|
|
repo = pname;
|
|
|
|
rev = "4125d3149c45d196600258686610de701130113d";
|
|
|
|
sha256 = "1x8in7z17gzgiibshw7xfs6m6bhr3n5fys3nlpab77nm0dl3f4r5";
|
2017-05-16 17:56:41 +02:00
|
|
|
};
|
2016-10-17 11:32:05 +02:00
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
2016-12-30 03:00:30 +01:00
|
|
|
|
2018-04-16 10:14:26 +02:00
|
|
|
propagatedBuildInputs = [ baloo karchive kconfig kcrash kfilemetadata kinit kirigami2 knewstuff plasma-framework ];
|
2016-10-17 11:32:05 +02:00
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
pathsToLink = [ "/etc/xdg/peruse.knsrc"];
|
2016-10-17 11:32:05 +02:00
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
meta = with lib; {
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2016-10-17 11:32:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|