mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +00:00
nix: build with the mold linker on x86_64-linux
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I5d1e28f9b74fe1a4881a7105722ef3376a6a6964
This commit is contained in:
parent
d3911dd81a
commit
7a4f6378e9
1 changed files with 7 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
{
|
||||
lib,
|
||||
craneLib,
|
||||
stdenv,
|
||||
mold,
|
||||
versionCheckHook,
|
||||
}: let
|
||||
pname = "stash";
|
||||
|
|
@ -52,6 +54,11 @@ in
|
|||
done
|
||||
'';
|
||||
|
||||
env = lib.optionalAttrs (stdenv.isLinux && !stdenv.hostPlatform.isAarch) {
|
||||
CARGO_LINKER = "clang";
|
||||
CARGO_RUSTFLAGS = "-Clink-arg=-fuse-ld=${mold}/bin/mold";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Wayland clipboard manager with fast persistent history and multi-media support";
|
||||
homepage = "https://github.com/notashelf/stash";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue