ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{ spellChecking ? true
|
|
, lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, gtk3
|
|
, gtkspell3
|
|
, gmime3
|
|
, gettext
|
|
, intltool
|
|
, itstool
|
|
, libxml2
|
|
, libnotify
|
|
, gnutls
|
|
, makeWrapper
|
|
, gnupg
|
|
, gnomeSupport ? true
|
|
, libsecret
|
|
, gcr
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pan";
|
|
version = "0.155";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GNOME";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-DsoTqZLcZOc3HlpCC8rmu/rcFeHkb9IWd4PSLwxKqJI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config gettext intltool itstool libxml2 makeWrapper ];
|
|
|
|
buildInputs = [ gtk3 gmime3 libnotify gnutls ]
|
|
++ lib.optional spellChecking gtkspell3
|
|
++ lib.optionals gnomeSupport [ libsecret gcr ];
|
|
|
|
configureFlags = [
|
|
"--with-dbus"
|
|
"--with-gtk3"
|
|
"--with-gnutls"
|
|
"--enable-libnotify"
|
|
] ++ 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";
|
|
mainProgram = "pan";
|
|
homepage = "http://pan.rebelbase.com/";
|
|
maintainers = [ maintainers.eelco ];
|
|
platforms = platforms.linux;
|
|
license = with licenses; [ gpl2Only fdl11Only ];
|
|
};
|
|
}
|