Merge pull request #267803 from reckenrode/nsplist-fix

NSPlist: fix build with clang 16

authored by Weijia Wang and committed by GitHub 17f8c17c 07beed3c

+7 -2
+7 -2
pkgs/development/libraries/NSPlist/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake }: 1 + { lib, stdenv, fetchFromGitHub, flex, cmake }: 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "NSPlist"; ··· 11 11 sha256 = "0v4yfiwfd08hmh2ydgy6pnmlzjbd96k78dsla9pfd56ka89aw74r"; 12 12 }; 13 13 14 - nativeBuildInputs = [ cmake ]; 14 + nativeBuildInputs = [ flex cmake ]; 15 + 16 + preConfigure = '' 17 + # Regenerate the lexer for improved compatibility with clang 16. 18 + flex -o src/NSPlistLexer.cpp <(tail --lines=+17 src/NSPlistLexer.l) 19 + ''; 15 20 16 21 meta = with lib; { 17 22 maintainers = with maintainers; [ matthewbauer ];