
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
atk,
|
|
gdk-pixbuf,
|
|
gobject-introspection,
|
|
pango,
|
|
python3Packages,
|
|
txt2tags,
|
|
wrapGAppsHook3,
|
|
gitUpdater,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "xdgmenumaker";
|
|
version = "2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gapan";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "rh1rRgbw8uqii4oN3XXNNKsWam1d8TY0qGceHERlG1k=";
|
|
};
|
|
|
|
format = "other";
|
|
|
|
strictDeps = false;
|
|
|
|
dontWrapGApps = true;
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
txt2tags
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|