nixpkgs/pkgs/applications/networking/newsreaders/pan/default.nix
Eelco Dolstra f2aa054357 * Revive gmime-2.2.x, because gmime-2.4.x is not backwards
compatible.  For instance, Pan requires gmime-2.2.

svn path=/nixpkgs/trunk/; revision=22543
2010-07-09 09:12:42 +00:00

33 lines
935 B
Nix

{ spellChecking ? true
, stdenv, fetchurl, pkgconfig, gtk, gtkspell ? null
, perl, pcre, gmime, gettext
}:
assert spellChecking -> gtkspell != null;
stdenv.mkDerivation {
name = "pan-0.133";
src = fetchurl {
url = http://pan.rebelbase.com/download/releases/0.133/source/pan-0.133.tar.bz2;
sha1 = "a0bd98ea1ba174800896611e3305a6b6d8dbde2f";
};
patches =
[ # Build on GCC 4.4.
(fetchurl {
url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/net-nntp/pan/files/pan-0.133-gcc44.patch?rev=1.1";
sha256 = "05xmgvcpl1gjcfab8xsdy400p55j59hp52fwa4qbwlqy3c35qv1v";
})
];
buildInputs = [pkgconfig gtk perl pcre gmime gettext]
++ stdenv.lib.optional spellChecking gtkspell;
meta = {
description = "A GTK+-based Usenet newsreader good at both text and binaries";
homepage = http://pan.rebelbase.com/;
maintainers = [ stdenv.lib.maintainers.eelco ];
};
}