openbox: Use python3 instead of python2 (#87846)
This commit is contained in:
parent
b47873026c
commit
ab0adc24cc
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, python2
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, python3
|
||||||
, libxml2, libXinerama, libXcursor, libXau, libXrandr, libICE, libSM
|
, libxml2, libXinerama, libXcursor, libXau, libXrandr, libICE, libSM
|
||||||
, imlib2, pango, libstartup_notification, makeWrapper }:
|
, imlib2, pango, libstartup_notification, makeWrapper }:
|
||||||
|
|
||||||
@ -7,22 +7,24 @@ stdenv.mkDerivation rec {
|
|||||||
version = "3.6.1";
|
version = "3.6.1";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook
|
||||||
pkgconfig
|
pkgconfig
|
||||||
makeWrapper
|
makeWrapper
|
||||||
python2.pkgs.wrapPython
|
python3.pkgs.wrapPython
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libxml2
|
libxml2
|
||||||
libXinerama libXcursor libXau libXrandr libICE libSM
|
libXinerama libXcursor libXau libXrandr libICE libSM
|
||||||
libstartup_notification
|
libstartup_notification
|
||||||
|
python3
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pango imlib2
|
pango imlib2
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonPath = with python2.pkgs; [
|
pythonPath = with python3.pkgs; [
|
||||||
pyxdg
|
pyxdg
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -36,6 +38,15 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1ci9lq4qqhl31yz1jwwjiawah0f7x0vx44ap8baw7r6rdi00pyiv";
|
sha256 = "1ci9lq4qqhl31yz1jwwjiawah0f7x0vx44ap8baw7r6rdi00pyiv";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Use fetchurl to avoid "fetchpatch: ignores file renames" #32084
|
||||||
|
# This patch adds python3 support
|
||||||
|
(fetchurl {
|
||||||
|
url = "https://git.archlinux.org/svntogit/community.git/plain/openbox/trunk/py3.patch?id=90cb57ef53d952bb6ab4c33a184f815bbe1791c0";
|
||||||
|
sha256 = "1ks99awlkhd5ph9kz94s1r6m1bfvh42g4rmxd14dyg5b421p1ljc";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postBuild = "gcc -O2 -o setlayout $(pkg-config --cflags --libs x11) $setlayoutSrc";
|
postBuild = "gcc -O2 -o setlayout $(pkg-config --cflags --libs x11) $setlayoutSrc";
|
||||||
|
|
||||||
# Openbox needs XDG_DATA_DIRS set or it can't find its default theme
|
# Openbox needs XDG_DATA_DIRS set or it can't find its default theme
|
||||||
|
Loading…
x
Reference in New Issue
Block a user