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
|
{
lib,
fetchFromGitLab,
python3,
autoconf,
automake,
gettext,
pkg-config,
libxslt,
gobject-introspection,
wrapGAppsHook3,
gnome-menus,
glib,
gtk3,
docbook_xsl,
nix-update-script,
}:
python3.pkgs.buildPythonApplication rec {
pname = "alacarte";
version = "3.52.0";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "alacarte";
rev = version;
hash = "sha256-SkolSk6RireH3aKkRTUCib/nflqD02PR9uVtXePRHQY=";
};
format = "other";
nativeBuildInputs = [
autoconf
automake
gettext
pkg-config
python3
libxslt
gobject-introspection
wrapGAppsHook3
];
buildInputs = [
gnome-menus
glib
gtk3
];
propagatedBuildInputs = with python3.pkgs; [ pygobject3 ];
configureScript = "./autogen.sh";
# Builder couldn't fetch the docbook.xsl from the internet directly,
# so we substitute it with the docbook.xsl in already in nixpkgs
preConfigure = ''
substituteInPlace man/Makefile.am \
--replace-fail "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" "${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
'';
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://gitlab.gnome.org/GNOME/alacarte";
description = "A menu editor for GNOME using the freedesktop.org menu specification";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.linux;
mainProgram = "alacarte";
maintainers = with lib.maintainers; [ pluiedev ];
};
}
|