nixpkgs/pkgs/applications/networking/newsreaders/pan/default.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

{ spellChecking ? true
, lib, stdenv, fetchurl, pkg-config, gtk3, gtkspell3 ? null
, gmime2, gettext, intltool, itstool, libxml2, libnotify, gnutls
, makeWrapper, gnupg
2018-12-25 22:41:02 +00:00
, gnomeSupport ? true, libsecret, gcr
}:
assert spellChecking -> gtkspell3 != null;
2019-11-28 20:32:19 +00:00
let version = "0.146"; in
stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "pan";
inherit version;
src = fetchurl {
url = "http://pan.rebelbase.com/download/releases/${version}/source/pan-${version}.tar.bz2";
2019-11-28 20:32:19 +00:00
sha256 = "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55";
};
nativeBuildInputs = [ pkg-config gettext intltool itstool libxml2 makeWrapper ];
2018-08-09 22:27:15 +01:00
buildInputs = [ gtk3 gmime2 libnotify gnutls ]
2021-01-15 13:21:58 +00:00
++ lib.optional spellChecking gtkspell3
++ lib.optionals gnomeSupport [ libsecret gcr ];
configureFlags = [
"--with-dbus"
"--with-gtk3"
"--with-gnutls"
"--enable-libnotify"
2021-01-15 13:21:58 +00:00
] ++ lib.optional spellChecking "--with-gtkspell"
++ lib.optional gnomeSupport "--enable-gkr";
postInstall = ''
wrapProgram $out/bin/pan --suffix PATH : ${gnupg}/bin
'';
enableParallelBuilding = true;
meta = with lib; {
description = "A GTK-based Usenet newsreader good at both text and binaries";
homepage = "http://pan.rebelbase.com/";
2020-06-11 16:51:30 +01:00
maintainers = [ maintainers.eelco ];
platforms = platforms.linux;
license = with licenses; [ gpl2 fdl11 ];
};
}