2003-11-06 15:24:19 +00:00
|
|
|
{ spellChecking ? true
|
2018-03-21 13:45:47 +00:00
|
|
|
, stdenv, fetchurl, pkgconfig, gtk3, gtkspell3 ? null
|
2018-07-21 01:44:44 +01:00
|
|
|
, perl, gmime2, gettext, intltool, itstool, libxml2, dbus-glib, libnotify, gnutls
|
2018-03-21 12:44:40 +00:00
|
|
|
, makeWrapper, gnupg
|
2018-12-25 22:41:02 +00:00
|
|
|
, gnomeSupport ? true, libsecret, gcr
|
2003-11-06 15:24:19 +00:00
|
|
|
}:
|
|
|
|
|
2018-03-21 13:45:47 +00:00
|
|
|
assert spellChecking -> gtkspell3 != null;
|
2003-11-06 15:24:19 +00:00
|
|
|
|
2018-05-26 15:13:10 +01:00
|
|
|
let version = "0.145"; in
|
2011-03-07 17:11:50 +00:00
|
|
|
|
2004-03-29 18:23:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2011-03-07 17:11:50 +00:00
|
|
|
name = "pan-${version}";
|
2003-11-06 16:28:57 +00:00
|
|
|
|
2003-11-06 15:24:19 +00:00
|
|
|
src = fetchurl {
|
2011-03-07 17:11:50 +00:00
|
|
|
url = "http://pan.rebelbase.com/download/releases/${version}/source/pan-${version}.tar.bz2";
|
2018-05-26 15:13:10 +01:00
|
|
|
sha256 = "1b4wamv33hprghcjk903bpvnd233yxyrm18qnh13alc8h1553nk8";
|
2003-11-06 15:24:19 +00:00
|
|
|
};
|
2003-11-06 16:28:57 +00:00
|
|
|
|
2018-08-09 22:27:15 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext intltool itstool libxml2 makeWrapper ];
|
|
|
|
buildInputs = [ gtk3 gmime2 libnotify gnutls ]
|
2018-03-21 13:45:47 +00:00
|
|
|
++ stdenv.lib.optional spellChecking gtkspell3
|
2018-12-25 22:41:02 +00:00
|
|
|
++ stdenv.lib.optionals gnomeSupport [ libsecret gcr ];
|
2018-03-21 13:45:47 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-dbus"
|
|
|
|
"--with-gtk3"
|
|
|
|
"--with-gnutls"
|
|
|
|
"--enable-libnotify"
|
|
|
|
] ++ stdenv.lib.optional spellChecking "--with-gtkspell"
|
|
|
|
++ stdenv.lib.optional gnomeSupport "--enable-gkr";
|
2006-10-11 17:45:55 +01:00
|
|
|
|
2018-03-21 12:44:40 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/pan --suffix PATH : ${gnupg}/bin
|
|
|
|
'';
|
|
|
|
|
2011-03-07 17:11:50 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2006-10-11 17:45:55 +01:00
|
|
|
meta = {
|
|
|
|
description = "A GTK+-based Usenet newsreader good at both text and binaries";
|
2008-06-17 15:19:59 +01:00
|
|
|
homepage = http://pan.rebelbase.com/;
|
2010-07-09 10:12:42 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2015-03-20 15:52:02 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2006-10-11 17:45:55 +01:00
|
|
|
};
|
2003-11-06 15:24:19 +00:00
|
|
|
}
|