xdgmenumaker: use python3 for NixOS#74295
This commit is contained in:
parent
3140fa89c5
commit
a05f04fd14
1 changed files with 16 additions and 10 deletions
|
@ -1,31 +1,37 @@
|
||||||
{ stdenv, fetchFromGitHub, txt2tags, python2Packages }:
|
{ stdenv, fetchFromGitHub, txt2tags, python3Packages, glib, gobject-introspection, wrapGAppsHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "xdgmenumaker";
|
pname = "xdgmenumaker";
|
||||||
version = "1.5";
|
version = "1.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gapan";
|
owner = "gapan";
|
||||||
repo = "xdgmenumaker";
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1vrsp5c1ah7p4dpwd6aqvinpwzd8crdimvyyr3lbm3c6cwpyjmif";
|
sha256 = "1vrsp5c1ah7p4dpwd6aqvinpwzd8crdimvyyr3lbm3c6cwpyjmif";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
format = "other";
|
||||||
|
|
||||||
|
strictDeps = false;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
gobject-introspection
|
||||||
txt2tags
|
txt2tags
|
||||||
python2Packages.wrapPython
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonPath = [
|
buildInputs = [
|
||||||
python2Packages.pyxdg
|
glib
|
||||||
python2Packages.pygtk
|
];
|
||||||
|
|
||||||
|
pythonPath = with python3Packages; [
|
||||||
|
pyxdg
|
||||||
|
pygobject3
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
make install PREFIX=$out DESTDIR=
|
make install PREFIX=$out DESTDIR=
|
||||||
wrapProgram "$out/bin/xdgmenumaker" \
|
|
||||||
--prefix XDG_DATA_DIRS : "$out/share"
|
|
||||||
wrapPythonPrograms
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue