Merge pull request #333651 from ghpzin/bumblebee-status/fix-python312-build

bumblebee-status: fix build with python 3.12
This commit is contained in:
Peder Bergebakken Sundt 2024-08-12 09:48:22 +02:00 committed by GitHub
commit 8555e78d68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;