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.3 KiB
Nix
Raw Normal View History

{ spellChecking ? true
2021-06-27 13:33:28 +00:00
, lib
, stdenv
, fetchFromGitLab
, autoreconfHook
2021-06-27 13:33:28 +00:00
, pkg-config
, gtk3
, gtkspell3
, gmime3
2021-06-27 13:33:28 +00:00
, 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";
2024-04-02 12:34:16 +00:00
version = "0.157";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = pname;
rev = "v${version}";
2024-04-02 12:34:16 +00:00
hash = "sha256-+zzAnppP6ICIhhlqXGVF4h/yIDa6oE1lxenmzcr2BQo=";
};
nativeBuildInputs = [ autoreconfHook pkg-config gettext intltool itstool libxml2 makeWrapper ];
2021-06-27 13:33:28 +00:00
buildInputs = [ gtk3 gmime3 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";
mainProgram = "pan";
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 ];
};
}