Skip to content

Instantly share code, notes, and snippets.

@ToxicFrog
Created July 15, 2017 13:25
Show Gist options
  • Save ToxicFrog/6ea37ec6f323457eae0c0abb0c146f2b to your computer and use it in GitHub Desktop.
Save ToxicFrog/6ea37ec6f323457eae0c0abb0c146f2b to your computer and use it in GitHub Desktop.
{
fetchFromGitHub, fetchurl, lib, stdenv,
extra-cmake-modules, kdoctools, wrapGAppsHook,
baloo, karchive, kconfig, kcrash, kfilemetadata, kinit, kirigami, knewstuff, plasma-framework
}:
let
pname = "peruse";
version = "1.2+20170127";
unarr = fetchFromGitHub {
owner = "zeniko";
repo = "unarr";
rev = "d1be8c43a82a4320306c8e835a86fdb7b2574ca7";
sha256 = "03ds5da69zipa25rsp76l6xqivrh3wcgygwyqa5x2rgcz3rjnlpr";
};
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchFromGitHub {
repo = "peruse";
owner = "KDE";
rev = "4cdb7ebff47db7ec320ce4bcaea0a5ce04825a6c";
sha256 = "1qm5j86jga5mkrq7m81dcxgnq2zdw18a5r6k4hg4cvybmsm622lw";
};
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
propagatedBuildInputs = [ baloo karchive kconfig kcrash 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 ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment