nixpkgs/pkgs/applications/misc/xdgmenumaker/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

67 lines
1.2 KiB
Nix

{ lib
, fetchFromGitHub
, atk
, gdk-pixbuf
, gobject-introspection
, pango
, python3Packages
, txt2tags
, wrapGAppsHook
, gitUpdater
}:
python3Packages.buildPythonApplication rec {
pname = "xdgmenumaker";
version = "2.1";
src = fetchFromGitHub {
owner = "gapan";
repo = pname;
rev = version;
sha256 = "K+IecWWRjnY/5TBJydTuEPqNRSg1OIE1t0u6HkLS9uI=";
};
format = "other";
strictDeps = false;
dontWrapGApps = true;
nativeBuildInputs = [
gobject-introspection
txt2tags
wrapGAppsHook
];
buildInputs = [
atk
gdk-pixbuf
pango
];
pythonPath = with python3Packages; [
pygobject3
pyxdg
];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Command line tool that generates XDG menus for several window managers";
mainProgram = "xdgmenumaker";
homepage = "https://github.com/gapan/xdgmenumaker";
license = licenses.gpl3Plus;
# NOTE: exclude darwin from platforms because Travis reports hash mismatch
platforms = with platforms; filter (x: !(elem x darwin)) unix;
maintainers = [ maintainers.romildo ];
};
}