push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
From 44679bc1a03302aa6b1eb19220d9723e9e0e4d3f Mon Sep 17 00:00:00 2001
From: usertam <code@usertam.dev>
Date: Fri, 16 May 2025 23:29:41 +0800
Subject: [PATCH] ignore obstack_free alias on darwin
clang will complain "error: aliases are not supported on darwin".
---
obstack.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/obstack.c b/obstack.c
index 1f2f4c7..b9be9dd 100644
--- a/obstack.c
+++ b/obstack.c
@@ -294,7 +294,9 @@ _obstack_free (struct obstack *h, void *obj)
abort ();
}
+#ifndef __APPLE__
extern __typeof(_obstack_free) obstack_free __attribute__((alias("_obstack_free")));
+#endif
_OBSTACK_SIZE_T
_obstack_memory_used (struct obstack *h)
--
2.48.1

View File

@@ -0,0 +1,38 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
}:
stdenv.mkDerivation rec {
pname = "musl-obstack";
version = "1.2.3";
src = fetchFromGitHub {
owner = "void-linux";
repo = "musl-obstack";
rev = "v${version}";
sha256 = "sha256-oydS7FubUniMHAUWfg84OH9+CZ0JCrTXy7jzwOyJzC8=";
};
patches = lib.optionals stdenv.hostPlatform.isDarwin [
./0001-ignore-obstack_free-alias-on-darwin.patch
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://github.com/void-linux/musl-obstack";
description = "Extraction of the obstack functions and macros from GNU libiberty for use with musl-libc";
platforms = platforms.unix;
license = licenses.lgpl21Plus;
maintainers = [ maintainers.pjjw ];
};
}