zig: add upstream patch to allow glibc 2.33 builds

This commit is contained in:
Maximilian Bosch 2021-05-31 13:15:19 +02:00 committed by Vladimír Čunát
parent 6e50ffe704
commit c1d014a975
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -4,6 +4,7 @@
, llvmPackages
, libxml2
, zlib
, fetchpatch
}:
let
@ -20,6 +21,14 @@ stdenv.mkDerivation rec {
hash = "sha256-bILjcKX8jPl2n1HRYvYRb7jJkobwqmSJ+hHXSn9n2ag=";
};
patches = [
# glibc 2.33 support
(fetchpatch {
url = "https://github.com/ziglang/zig/commit/0fee4b55a8c58791238efe6bf2da5ce3435a5cc1.patch";
sha256 = "sha256-waVtolUlmGrfiRk4tWsSOij5MfUc+g57DatC6GtSx6c=";
})
];
nativeBuildInputs = [
cmake
llvmPackages.llvm.dev