mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
72e7d569a7
GTK was renamed.
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ spellChecking ? true
|
|
, stdenv, fetchurl, pkgconfig, gtk3, gtkspell3 ? null
|
|
, gmime2, gettext, intltool, itstool, libxml2, libnotify, gnutls
|
|
, makeWrapper, gnupg
|
|
, gnomeSupport ? true, libsecret, gcr
|
|
}:
|
|
|
|
assert spellChecking -> gtkspell3 != null;
|
|
|
|
let version = "0.145"; in
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "pan";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "http://pan.rebelbase.com/download/releases/${version}/source/pan-${version}.tar.bz2";
|
|
sha256 = "1b4wamv33hprghcjk903bpvnd233yxyrm18qnh13alc8h1553nk8";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig gettext intltool itstool libxml2 makeWrapper ];
|
|
buildInputs = [ gtk3 gmime2 libnotify gnutls ]
|
|
++ stdenv.lib.optional spellChecking gtkspell3
|
|
++ stdenv.lib.optionals gnomeSupport [ libsecret gcr ];
|
|
|
|
configureFlags = [
|
|
"--with-dbus"
|
|
"--with-gtk3"
|
|
"--with-gnutls"
|
|
"--enable-libnotify"
|
|
] ++ stdenv.lib.optional spellChecking "--with-gtkspell"
|
|
++ stdenv.lib.optional gnomeSupport "--enable-gkr";
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/pan --suffix PATH : ${gnupg}/bin
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "A GTK-based Usenet newsreader good at both text and binaries";
|
|
homepage = http://pan.rebelbase.com/;
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|