depot/pkgs/by-name/al/alacarte/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

71 lines
1.6 KiB
Nix

{
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.54.0";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "alacarte";
rev = version;
hash = "sha256-btqSlO0vM4fmoBcxh3mshv0t2oZSxm8Vr26UvH5fVvE=";
};
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";
changelog = "https://gitlab.gnome.org/GNOME/alacarte/-/blob/${version}/NEWS?ref_type=tags";
description = "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 ];
};
}