Revert "noti: fix build on Darwin"

The ld64 issue has been fixed.

This reverts commit f2722a7fad.
This commit is contained in:
Emily
2026-07-15 03:19:47 +01:00
parent b3d3cfb270
commit cd3be32b01

View File

@@ -1,9 +1,7 @@
{
lib,
stdenv,
buildGoModule,
fetchFromCodeberg,
llvmPackages,
installShellFiles,
}:
@@ -20,19 +18,10 @@ buildGoModule (finalAttrs: {
vendorHash = null;
nativeBuildInputs = [
installShellFiles
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
nativeBuildInputs = [ installShellFiles ];
subPackages = [ "cmd/noti" ];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Work around ld64's libc++ hardening issue.
# TODO: Remove once #536365 reaches this branch.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
ldflags = [
"-s"
"-w"