ebd1881925
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/pan/versions. These checks were done: - built on NixOS - /nix/store/myvdzpw4h622lqfbssrqq8iv0jlgmr3x-pan-0.145/bin/pan passed the binary check. - /nix/store/myvdzpw4h622lqfbssrqq8iv0jlgmr3x-pan-0.145/bin/.pan-wrapped passed the binary check. - 2 of 2 passed binary check by having a zero exit code. - 2 of 2 passed binary check by having the new version present in output. - found 0.145 with grep in /nix/store/myvdzpw4h622lqfbssrqq8iv0jlgmr3x-pan-0.145 - directory tree listing: https://gist.github.com/71c7135618028b366312a29248169c8f - du listing: https://gist.github.com/ab2cc751a6e4bb701fc4e8d6836d398e
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{ spellChecking ? true
|
|
, stdenv, fetchurl, pkgconfig, gtk3, gtkspell3 ? null
|
|
, perl, pcre, gmime2, gettext, intltool, itstool, libxml2, dbus-glib, libnotify, gnutls
|
|
, makeWrapper, gnupg
|
|
, gnomeSupport ? true, libgnome-keyring3
|
|
}:
|
|
|
|
assert spellChecking -> gtkspell3 != null;
|
|
|
|
let version = "0.145"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "pan-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://pan.rebelbase.com/download/releases/${version}/source/pan-${version}.tar.bz2";
|
|
sha256 = "1b4wamv33hprghcjk903bpvnd233yxyrm18qnh13alc8h1553nk8";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
|
buildInputs = [ gtk3 perl gmime2 gettext intltool itstool libxml2 dbus-glib libnotify gnutls ]
|
|
++ stdenv.lib.optional spellChecking gtkspell3
|
|
++ stdenv.lib.optional gnomeSupport libgnome-keyring3;
|
|
|
|
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;
|
|
};
|
|
}
|