Merge pull request #75015 from romildo/fix.xdgmenumaker
xdgmenumaker: use python3 for NixOS#74295
This commit is contained in:
commit
bc471c14db
@ -1,33 +1,43 @@
|
||||
{ stdenv, fetchFromGitHub, txt2tags, python2Packages }:
|
||||
{ stdenv, fetchFromGitHub, txt2tags, python3Packages, glib, gobject-introspection, wrapGAppsHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "xdgmenumaker";
|
||||
version = "1.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gapan";
|
||||
repo = "xdgmenumaker";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1vrsp5c1ah7p4dpwd6aqvinpwzd8crdimvyyr3lbm3c6cwpyjmif";
|
||||
};
|
||||
|
||||
format = "other";
|
||||
|
||||
strictDeps = false;
|
||||
|
||||
nativeBuildInputs = [
|
||||
gobject-introspection
|
||||
txt2tags
|
||||
python2Packages.wrapPython
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
pythonPath = [
|
||||
python2Packages.pyxdg
|
||||
python2Packages.pygtk
|
||||
buildInputs = [
|
||||
glib
|
||||
];
|
||||
|
||||
pythonPath = with python3Packages; [
|
||||
pyxdg
|
||||
pygobject3
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=${placeholder "out"}"
|
||||
];
|
||||
|
||||
installFlags = [
|
||||
"DESTDIR="
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
make install PREFIX=$out DESTDIR=
|
||||
wrapProgram "$out/bin/xdgmenumaker" \
|
||||
--prefix XDG_DATA_DIRS : "$out/share"
|
||||
wrapPythonPrograms
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Command line tool that generates XDG menus for several window managers";
|
||||
homepage = https://github.com/gapan/xdgmenumaker;
|
||||
|
Loading…
Reference in New Issue
Block a user