diff options
author | Leah Amelia Chen <hi@pluie.me> | 2024-05-13 10:25:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 08:25:23 +0000 |
commit | 6b9924ced21119083450331731279d3fb778e390 (patch) | |
tree | 2ee80b36028e988e8f613016c25c948fd520b5a3 /pkgs/by-name/al | |
parent | 6b2dd148f885f6ac9e7962435481d5274b717d10 (diff) |
alacarte: init at 3.52.0 (#310442)
Diffstat (limited to 'pkgs/by-name/al')
-rw-r--r-- | pkgs/by-name/al/alacarte/package.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/by-name/al/alacarte/package.nix b/pkgs/by-name/al/alacarte/package.nix new file mode 100644 index 0000000000000..003558c0e86d1 --- /dev/null +++ b/pkgs/by-name/al/alacarte/package.nix @@ -0,0 +1,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 ]; + }; +} |