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
87
88
89
90
91
92
93
94
95
96
|
{
stdenv,
lib,
fetchurl,
replaceVars,
meson,
ninja,
pkg-config,
gettext,
gi-docgen,
gnome,
glib,
gtk3,
gobject-introspection,
python3,
ncurses,
wrapGAppsHook3,
}:
stdenv.mkDerivation rec {
pname = "libpeas";
version = "1.38.1";
outputs = [
"out"
"dev"
"devdoc"
];
src = fetchurl {
url = "mirror://gnome/sources/libpeas/${lib.versions.majorMinor version}/libpeas-${version}.tar.xz";
sha256 = "sha256-6C/TKK3KwaujS2QTa9/Lus8rMliovE5fSApyUCphGuk=";
};
patches = [
# Make PyGObject’s gi library available.
(replaceVars ./fix-paths.patch {
pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [
python3.pkgs.pygobject3
];
})
];
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
pkg-config
meson
ninja
gettext
gi-docgen
gobject-introspection
wrapGAppsHook3
];
buildInputs = [
glib
gtk3
ncurses
python3
python3.pkgs.pygobject3
];
propagatedBuildInputs = [
# Required by libpeas-1.0.pc
gobject-introspection
];
mesonFlags = [
"-Dgtk_doc=true"
];
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "libpeas";
versionPolicy = "odd-unstable";
freeze = true;
};
};
meta = {
description = "GObject-based plugins engine";
mainProgram = "peas-demo";
homepage = "https://gitlab.gnome.org/GNOME/libpeas";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
teams = [ lib.teams.gnome ];
};
}
|