Update from clang 11 to clang 15 to work with nixpkgs 24.05

This commit is contained in:
xenia 2024-06-02 23:16:12 +02:00
parent 31e142c9f7
commit 2266acf5cc

View File

@ -9,12 +9,14 @@
flake-utils.lib.eachDefaultSystem (sys: flake-utils.lib.eachDefaultSystem (sys:
let let
pkgs = nixpkgs.legacyPackages.${sys}; pkgs = nixpkgs.legacyPackages.${sys};
clang = pkgs.clang_15;
kak = pkgs.stdenv.mkDerivation rec { kak = pkgs.stdenv.mkDerivation rec {
pname = "kak"; pname = "kak";
version = "dev"; version = "dev";
src = ./. ; src = ./. ;
makeFlags = [ "debug=no" "PREFIX=${placeholder "out"}" ]; makeFlags = [ "debug=no" "PREFIX=${placeholder "out"}" ];
nativeBuildInputs = [ pkgs.clang_11 ]; nativeBuildInputs = [ clang ];
preConfigure = '' preConfigure = ''
export version="v${version}" export version="v${version}"
@ -43,7 +45,7 @@
packages.kak = kak; packages.kak = kak;
packages.default = kak; packages.default = kak;
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
packages = [ pkgs.clang_11 ]; packages = [ clang ];
}; };
} }
); );