Merge pull request #288958 from a-n-n-a-l-e-e/c2ffi-unpin-llvm11

c2ffi: unstable-2021-06-15 -> 0-unstable-2023-11-18
This commit is contained in:
a-n-n-a-l-e-e 2024-02-19 14:08:38 -08:00 committed by GitHub
commit d1707e6ede
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,24 +1,25 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, llvmPackages_11
, llvmPackages_16
, unstableGitUpdater
}:
let
c2ffiBranch = "llvm-11.0.0";
llvmPackages = llvmPackages_11;
c2ffiBranch = "llvm-16.0.0";
llvmPackages = llvmPackages_16;
in
llvmPackages.stdenv.mkDerivation {
pname = "c2ffi-${c2ffiBranch}";
version = "unstable-2021-06-15";
version = "0-unstable-2023-11-18";
src = fetchFromGitHub {
owner = "rpav";
repo = "c2ffi";
rev = "f50243926a0afb589de1078a073ac08910599582";
sha256 = "UstGicFzFY0/Jge5HGYTPwYSnh9OUBY5346ObZYfR54=";
rev = "097cbe61ca02dc79ea60859aa056975131a9d985";
hash = "sha256-pflolW5OoEkVDozy4cjCdUIVxgE/SfVKIhQyNBDhENc=";
};
passthru.updateScript = unstableGitUpdater {
@ -45,7 +46,7 @@ llvmPackages.stdenv.mkDerivation {
# LLVM may be compiled with -fno-rtti, so let's just turn it off.
# A mismatch between lib{clang,LLVM}* and us can lead to the link time error:
# undefined reference to `typeinfo for clang::ASTConsumer'
CXXFLAGS="-fno-rtti";
env.CXXFLAGS="-fno-rtti";
meta = with lib; {
homepage = "https://github.com/rpav/c2ffi";