2012-01-26 23:24:40 +00:00
|
|
|
{ stdenv, fetchurl, cmake, qt4, gettext
|
2012-01-24 22:09:17 +00:00
|
|
|
, kdelibs, kdebase_workspace, perl
|
|
|
|
, openssl, phonon, automoc4
|
|
|
|
, libX11, libXext, libXft
|
|
|
|
, unrar, p7zip, par2cmdline, coreutils
|
|
|
|
}:
|
|
|
|
|
2015-09-27 16:11:01 +01:00
|
|
|
let version = "1.1.0";
|
2012-01-24 22:09:17 +00:00
|
|
|
name = "kwooty-${version}";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2015-09-27 16:11:01 +01:00
|
|
|
|
2012-01-24 22:09:17 +00:00
|
|
|
src = fetchurl {
|
2015-09-27 16:11:01 +01:00
|
|
|
url = "http://kde-apps.org/CONTENT/content-files/114385-${name}.tar.gz";
|
|
|
|
sha256 = "10a9asjv6ja1xdjli2399dyka2rbia3qdm5bdpmcng6xdsbhx3ap";
|
2012-01-24 22:09:17 +00:00
|
|
|
};
|
|
|
|
|
2015-09-27 16:11:01 +01:00
|
|
|
patches = [ ./0001-search-paths.patch ];
|
2012-01-24 22:09:17 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
echo "Changing paths to archive utilities to the nix store";
|
|
|
|
substituteInPlace "src/utility.cpp" \
|
|
|
|
--replace "/usr/bin/unrar" "${unrar}/bin" \
|
|
|
|
--replace "/usr/bin/unpar" "${par2cmdline}/bin" \
|
|
|
|
--replace "/usr/bin/7z" "${p7zip}/bin" \
|
|
|
|
--replace "/usr/bin/nice" "${coreutils}/bin/nice"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =
|
2012-01-26 23:24:40 +00:00
|
|
|
[ stdenv perl cmake qt4 gettext automoc4 openssl
|
2012-01-24 22:09:17 +00:00
|
|
|
kdelibs kdebase_workspace phonon
|
|
|
|
libX11 libXext libXft
|
|
|
|
];
|
2015-09-27 16:11:01 +01:00
|
|
|
|
2012-02-29 12:54:35 +00:00
|
|
|
meta = {
|
2012-02-11 09:06:09 +00:00
|
|
|
description = "Binary news reader of KDE";
|
2012-01-24 22:09:17 +00:00
|
|
|
};
|
|
|
|
}
|