bumblebee-status: fix build with python 3.12

This commit is contained in:
ghpzin
2024-08-10 14:02:28 +03:00
parent bfbf2d45f3
commit 339bf07253
@@ -2,6 +2,7 @@
, lib
, glibcLocales
, python
, fetchpatch
, fetchFromGitHub
# Usage: bumblebee-status.override { plugins = p: [p.arandr p.bluetooth2]; };
, plugins ? p: [ ]
@@ -29,6 +30,15 @@ python.pkgs.buildPythonPackage {
hash = "sha256-+RCg2XZv0AJnexi7vnQhEXB1qSoKBN1yKWm3etdys1s=";
};
patches = [
# fix build with Python 3.12
# https://github.com/tobi-wan-kenobi/bumblebee-status/pull/1019
(fetchpatch {
url = "https://github.com/tobi-wan-kenobi/bumblebee-status/commit/2fe8f1ff1444daf155b18318005f33a76a5d64b4.patch";
hash = "sha256-BC1cgQDMJkhuEgq8NJ28521CHbEfqIMueHkFXXlZz2w=";
})
];
buildInputs = lib.concatMap (p: p.buildInputs or [ ]) selectedPlugins;
propagatedBuildInputs = lib.concatMap (p: p.propagatedBuildInputs or [ ]) selectedPlugins;