nixpkgs/pkgs/tools/misc/peruse/default.nix
Peter Hoeg 3674be1e98 peruse: 1.1 -> 1.2
1.2 also ships Peruse Creator
2017-01-07 11:53:48 +08:00

45 lines
1.2 KiB
Nix

{
kdeDerivation, kdeWrapper, fetchFromGitHub, fetchurl, lib,
ecm, kdoctools,
baloo, kconfig, kfilemetadata, kinit, kirigami, knewstuff, plasma-framework
}:
let
pname = "peruse";
version = "1.2";
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";
sha256 = "1ik2627xynkichsq9x28rkczqn3l3p06q6vw5jdafdh3hisccmjq";
};
nativeBuildInputs = [ ecm kdoctools ];
propagatedBuildInputs = [ baloo kconfig kfilemetadata kinit kirigami knewstuff plasma-framework ];
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; {
license = licenses.gpl2;
maintainers = with maintainers; [ peterhoeg ];
};
};
in kdeWrapper {
inherit unwrapped;
targets = [ "bin/peruse" "bin/perusecreator" ];
}