1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-08 02:38:11 +09:00
nixpkgs/pkgs/by-name/pa/pan/package.nix
2025-06-01 17:10:53 +00:00

86 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
cmake,
pkg-config,
gtk3,
gspell,
gmime3,
gettext,
intltool,
itstool,
libxml2,
libnotify,
gnutls,
wrapGAppsHook3,
gnupg,
spellChecking ? true,
gnomeSupport ? true,
libsecret,
gcr,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pan";
version = "0.163";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "pan";
tag = "v${finalAttrs.version}";
hash = "sha256-zClHwIvrWqAn8l1hpcy3FgScRmVUUk8UPQkT0KD59hM=";
};
nativeBuildInputs = [
cmake
pkg-config
gettext
intltool
itstool
libxml2
wrapGAppsHook3
];
buildInputs =
[
gtk3
gmime3
libnotify
gnutls
]
++ lib.optionals spellChecking [ gspell ]
++ lib.optionals gnomeSupport [
libsecret
gcr
];
cmakeFlags = [
(lib.cmakeBool "WANT_GSPELL" spellChecking)
(lib.cmakeBool "WANT_GKR" gnomeSupport)
(lib.cmakeBool "ENABLE_MANUAL" true)
(lib.cmakeBool "WANT_GMIME_CRYPTO" true)
(lib.cmakeBool "WANT_WEBKIT" false) # We don't have webkitgtk_3_0
(lib.cmakeBool "WANT_NOTIFY" true)
];
preFixup = ''
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ gnupg ]})
'';
meta = {
description = "GTK-based Usenet newsreader good at both text and binaries";
mainProgram = "pan";
homepage = "http://pan.rebelbase.com";
maintainers = with lib.maintainers; [
aleksana
emaryn
];
platforms = lib.platforms.linux;
license = with lib.licenses; [
gpl2Only
fdl11Only
];
};
})