Skip to content

Commit

Permalink
python3Packages.aggdraw: fix build with clang 16
Browse files Browse the repository at this point in the history
Clang 16 defaults to C++17, which disallows the `register` storage class
specifier. Upstream has fixed this on a maintenance branch, but it is
not yet available in a release.
  • Loading branch information
reckenrode committed Nov 10, 2023
1 parent 58f06c4 commit 3e7992b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/python-modules/aggdraw/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, packaging
, setuptools
Expand All @@ -23,6 +24,14 @@ buildPythonPackage rec {
hash = "sha256-2yajhuRyQ7BqghbSgPClW3inpw4TW2DhgQbomcRFx94=";
};

patches = [
# Removes `register` storage class specifier, which is not allowed in C++17.
(fetchpatch {
url = "https://github.com/pytroll/aggdraw/commit/157ed49803567e8c3eeb7dfeff4c116db35747f7.patch";
hash = "sha256-QSzpO90u5oSBWUzehRFbXgZ1ApEfLlfp11MUx6w11aI=";
})
];

nativeBuildInputs = [
packaging
setuptools
Expand Down

0 comments on commit 3e7992b

Please sign in to comment.