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
|
|
|
|
2018-05-26 16:13:10 +02:00
|
|
|
let version = "0.145"; in
|
2011-03-07 18:11:50 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2011-03-07 18:11:50 +01:00
|
|
|
name = "pan-${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";
|
2018-05-26 16:13:10 +02:00
|
|
|
sha256 = "1b4wamv33hprghcjk903bpvnd233yxyrm18qnh13alc8h1553nk8";
|
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;
|
|
|
|
|
2006-10-11 18:45:55 +02:00
|
|
|
meta = {
|
|
|
|
description = "A GTK+-based Usenet newsreader good at both text and binaries";
|
2008-06-17 16:19:59 +02:00
|
|
|
homepage = http://pan.rebelbase.com/;
|
2010-07-09 11:12:42 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2015-03-20 16:52:02 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2006-10-11 18:45:55 +02:00
|
|
|
};
|
2003-11-06 16:24:19 +01:00
|
|
|
}
|