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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.4 KiB
Nix
Raw Normal View History

{ spellChecking ? true
2021-06-27 13:33:28 +00:00
, lib
, stdenv
, fetchurl
, pkg-config
, gtk3
, gtkspell3
, gmime2
, gettext
, intltool
, itstool
, libxml2
, libnotify
, gnutls
, makeWrapper
, gnupg
, gnomeSupport ? true
, libsecret
, gcr
}:
2021-06-27 13:33:28 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "pan";
2021-06-27 13:33:28 +00:00
version = "0.146";
src = fetchurl {
2021-06-27 13:33:28 +00:00
url = "https://pan.rebelbase.com/download/releases/${version}/source/pan-${version}.tar.bz2";
2019-11-28 20:32:19 +00:00
sha256 = "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55";
};
2021-06-27 13:33:28 +00:00
patches = [
# Take <glib.h>, <gmime.h>, "gtk-compat.h" out of extern "C"
./move-out-of-extern-c.diff
];
nativeBuildInputs = [ pkg-config gettext intltool itstool libxml2 makeWrapper ];
2021-06-27 13:33:28 +00:00
2018-08-09 21:27:15 +00: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"
2021-06-27 13:33:28 +00:00
++ 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 15:51:30 +00:00
maintainers = [ maintainers.eelco ];
platforms = platforms.linux;
2022-10-27 20:45:22 +00:00
license = with licenses; [ gpl2Only fdl11Only ];
};
}