2003-11-06 16:24:19 +01:00
|
|
|
{ spellChecking ? true
|
2018-03-21 14:45:47 +01:00
|
|
|
, stdenv, fetchurl, pkgconfig, gtk3, gtkspell3 ? null
|
2019-06-16 21:59:06 +02:00
|
|
|
, gmime2, gettext, intltool, itstool, libxml2, libnotify, gnutls
|
2018-03-21 13:44:40 +01:00
|
|
|
, makeWrapper, gnupg
|
2018-12-25 23:41:02 +01:00
|
|
|
, gnomeSupport ? true, libsecret, gcr
|
2003-11-06 16:24:19 +01:00
|
|
|
}:
|
|
|
|
|
2018-03-21 14:45:47 +01:00
|
|
|
assert spellChecking -> gtkspell3 != null;
|
2003-11-06 16:24:19 +01:00
|
|
|
|
2019-11-28 21:32:19 +01:00
|
|
|
let version = "0.146"; in
|
2011-03-07 18:11:50 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "pan";
|
|
|
|
inherit version;
|
2003-11-06 17:28:57 +01:00
|
|
|
|
2003-11-06 16:24:19 +01:00
|
|
|
src = fetchurl {
|
2011-03-07 18:11:50 +01:00
|
|
|
url = "http://pan.rebelbase.com/download/releases/${version}/source/pan-${version}.tar.bz2";
|
2019-11-28 21:32:19 +01:00
|
|
|
sha256 = "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55";
|
2003-11-06 16:24:19 +01:00
|
|
|
};
|
2003-11-06 17:28:57 +01:00
|
|
|
|
2018-08-09 23:27:15 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext intltool itstool libxml2 makeWrapper ];
|
|
|
|
buildInputs = [ gtk3 gmime2 libnotify gnutls ]
|
2018-03-21 14:45:47 +01:00
|
|
|
++ stdenv.lib.optional spellChecking gtkspell3
|
2018-12-25 23:41:02 +01:00
|
|
|
++ stdenv.lib.optionals gnomeSupport [ libsecret gcr ];
|
2018-03-21 14:45:47 +01: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 18:45:55 +02:00
|
|
|
|
2018-03-21 13:44:40 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/pan --suffix PATH : ${gnupg}/bin
|
|
|
|
'';
|
|
|
|
|
2011-03-07 18:11:50 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-06-11 17:51:30 +02:00
|
|
|
meta = with stdenv.lib; {
|
2019-09-04 00:49:40 +02:00
|
|
|
description = "A GTK-based Usenet newsreader good at both text and binaries";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://pan.rebelbase.com/";
|
2020-06-11 17:51:30 +02:00
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ gpl2 fdl11 ];
|
2006-10-11 18:45:55 +02:00
|
|
|
};
|
2003-11-06 16:24:19 +01:00
|
|
|
}
|