mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{ spellChecking ? true
|
|
, lib, stdenv, fetchurl, pkg-config, gtk3, gtkspell3 ? null
|
|
, gmime2, gettext, intltool, itstool, libxml2, libnotify, gnutls
|
|
, makeWrapper, gnupg
|
|
, gnomeSupport ? true, libsecret, gcr
|
|
}:
|
|
|
|
assert spellChecking -> gtkspell3 != null;
|
|
|
|
let version = "0.146"; in
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "pan";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "http://pan.rebelbase.com/download/releases/${version}/source/pan-${version}.tar.bz2";
|
|
sha256 = "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config gettext intltool itstool libxml2 makeWrapper ];
|
|
buildInputs = [ gtk3 gmime2 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";
|
|
homepage = "http://pan.rebelbase.com/";
|
|
maintainers = [ maintainers.eelco ];
|
|
platforms = platforms.linux;
|
|
license = with licenses; [ gpl2 fdl11 ];
|
|
};
|
|
}
|