3
0
Fork 0
forked from mirrors/nixpkgs

peruse: 1.2 -> 1.2.20180219

This commit is contained in:
Peter Hoeg 2018-04-16 16:14:26 +08:00
parent 1441787c84
commit 911a6da2fe

View file

@ -1,37 +1,30 @@
{ {
mkDerivation, fetchFromGitHub, fetchurl, lib, mkDerivation, fetchFromGitHub, fetchurl, lib,
extra-cmake-modules, kdoctools, wrapGAppsHook, extra-cmake-modules, kdoctools, wrapGAppsHook,
baloo, karchive, kconfig, kcrash, kfilemetadata, kinit, kirigami, knewstuff, plasma-framework baloo, karchive, kconfig, kcrash, kfilemetadata, kinit, kirigami2, knewstuff, plasma-framework
}: }:
let let
pname = "peruse"; pname = "peruse";
version = "1.2"; version = "1.2.20180219";
unarr = fetchFromGitHub {
owner = "zeniko";
repo = "unarr";
rev = "d1be8c43a82a4320306c8e835a86fdb7b2574ca7";
sha256 = "03ds5da69zipa25rsp76l6xqivrh3wcgygwyqa5x2rgcz3rjnlpr";
};
in mkDerivation rec { in mkDerivation rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchurl { # The last formal release from 2016 uses kirigami1 which is deprecated
url = "mirror://kde/stable/${pname}/${name}.tar.xz"; src = fetchFromGitHub {
sha256 = "1ik2627xynkichsq9x28rkczqn3l3p06q6vw5jdafdh3hisccmjq"; owner = "KDE";
repo = pname;
rev = "4125d3149c45d196600258686610de701130113d";
sha256 = "1x8in7z17gzgiibshw7xfs6m6bhr3n5fys3nlpab77nm0dl3f4r5";
}; };
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ]; nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
propagatedBuildInputs = [ baloo karchive kconfig kcrash kfilemetadata kinit kirigami knewstuff plasma-framework ]; propagatedBuildInputs = [ baloo karchive kconfig kcrash kfilemetadata kinit kirigami2 knewstuff plasma-framework ];
pathsToLink = [ "/etc/xdg/peruse.knsrc"]; pathsToLink = [ "/etc/xdg/peruse.knsrc"];
preConfigure = ''
rm -rf src/qtquick/karchive-rar/external/unarr
ln -s ${unarr} src/qtquick/karchive-rar/external/unarr
'';
meta = with lib; { meta = with lib; {
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ peterhoeg ]; maintainers = with maintainers; [ peterhoeg ];