nixpkgs/pkgs/applications/networking/newsreaders/kwooty/default.nix
Arie Middelkoop af2f845060 Kwooty binary newsreader version bump 0.8.0 -> 0.8.1.
Newer version builds against the updated dependencies of the package.

svn path=/nixpkgs/trunk/; revision=32226
2012-02-11 09:06:09 +00:00

39 lines
1 KiB
Nix

{ stdenv, fetchurl, cmake, qt4, gettext
, kdelibs, kdebase_workspace, perl
, openssl, phonon, automoc4
, libX11, libXext, libXft
, unrar, p7zip, par2cmdline, coreutils
}:
let version = "0.8.1";
name = "kwooty-${version}";
in stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "mirror://sourceforge/kwooty/${name}.tar.gz";
sha256 = "746ed50ec3c067711932c89dc3ee5527c126f37c6922b3eda49535eb83c245e4";
};
patches = [ ./searchPath.patch ];
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 =
[ stdenv perl cmake qt4 gettext automoc4 openssl
kdelibs kdebase_workspace phonon
libX11 libXext libXft
];
meta = with stdenv.lib; {
description = "Binary news reader of KDE";
};
}