forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
84 lines (77 loc) · 1.54 KB
/
package.nix
File metadata and controls
84 lines (77 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
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.165";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "pan";
tag = "v${finalAttrs.version}";
hash = "sha256-y9ejT/XTMoWMLSIOePEtPCUy51JThJrBBOCdSUTk2yc=";
};
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
];
platforms = lib.platforms.linux;
license = with lib.licenses; [
gpl2Only
fdl11Only
];
};
})