forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.nix
86 lines (78 loc) · 1.48 KB
/
package.nix
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
85
86
{
spellChecking ? true,
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
pkg-config,
gtk3,
gtkspell3,
gmime3,
gettext,
intltool,
itstool,
libxml2,
libnotify,
gnutls,
makeWrapper,
gnupg,
gnomeSupport ? true,
libsecret,
gcr,
}:
stdenv.mkDerivation rec {
pname = "pan";
version = "0.158";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = pname;
rev = "v${version}";
hash = "sha256-gcs3TsUzZAW8PhNPMzyOfwu+2SNynjRgfxdGIfAHrpA=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
gettext
intltool
itstool
libxml2
makeWrapper
];
buildInputs =
[
gtk3
gmime3
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 = "GTK-based Usenet newsreader good at both text and binaries";
mainProgram = "pan";
homepage = "http://pan.rebelbase.com/";
maintainers = with maintainers; [ aleksana ];
platforms = platforms.linux;
license = with licenses; [
gpl2Only
fdl11Only
];
};
}