Revert "starship: fix build on Darwin"

The ld64 issue has been fixed.

This reverts commit 883e799eb2.
This commit is contained in:
Emily
2026-07-15 03:26:25 +01:00
parent 1077d6b0cd
commit 45ffb993fa
+2 -14
View File
@@ -3,7 +3,6 @@
stdenv,
fetchFromGitHub,
rustPlatform,
llvmPackages,
installShellFiles,
writableTmpDirAsHomeHook,
gitMinimal,
@@ -23,24 +22,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
hash = "sha256-pStNE8SMMVavL3ld6RO+5QQRJPXpqlU3asccS2tUoMQ=";
};
nativeBuildInputs = [
installShellFiles
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
writableTmpDirAsHomeHook
];
env = {
TZDIR = "${tzdata}/share/zoneinfo";
}
// 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";
};
env.TZDIR = "${tzdata}/share/zoneinfo";
postInstall = ''
presetdir=$out/share/starship/presets/