build: get rid of the overzealous build script; leave symlinking to packagers

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I39c590f0a703ab71d3cb5a8df9b095a46a6a6964
This commit is contained in:
raf 2026-04-03 13:55:58 +03:00
commit 9702e67599
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 2 additions and 66 deletions

View file

@ -4,6 +4,7 @@
stdenv,
mold,
versionCheckHook,
useMold ? stdenv.isLinux,
createSymlinks ? true,
}: let
pname = "stash";
@ -55,7 +56,7 @@ in
done
'';
env = lib.optionalAttrs (stdenv.isLinux && !stdenv.hostPlatform.isAarch) {
env = lib.optionalAttrs useMold {
CARGO_LINKER = "clang";
CARGO_RUSTFLAGS = "-Clink-arg=-fuse-ld=${mold}/bin/mold";
};