2003-11-06 15:24:19 +00:00
|
|
|
{ spellChecking ? true
|
2018-03-21 13:45:47 +00:00
|
|
|
, stdenv, fetchurl, pkgconfig, gtk3, gtkspell3 ? null
|
2019-06-16 20:59:06 +01:00
|
|
|
, gmime2, gettext, intltool, itstool, libxml2, 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
|
|
|
|
2019-11-28 20:32:19 +00:00
|
|
|
let version = "0.146"; in
|
2011-03-07 17:11:50 +00:00
|
|
|
|
2004-03-29 18:23:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "pan";
|
|
|
|
inherit 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";
|
2019-11-28 20:32:19 +00:00
|
|
|
sha256 = "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55";
|
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 = {
|
2019-09-03 23:49:40 +01:00
|
|
|
description = "A GTK-based Usenet newsreader good at both text and binaries";
|
2020-04-01 02:11:51 +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
|
|
|
}
|