rclone: fix build on Darwin

This commit is contained in:
kataokatsuki
2026-05-26 15:55:59 +02:00
committed by Sandro Jäckel
parent 9278612b7a
commit 4513cdf164
+8 -2
View File
@@ -9,6 +9,7 @@
makeWrapper,
enableCmount ? true,
fuse3,
macfuse-stubs,
librclone,
nix-update-script,
}:
@@ -38,9 +39,14 @@ buildGoModule (finalAttrs: {
makeWrapper
];
buildInputs = lib.optional enableCmount fuse3;
buildInputs = lib.optional enableCmount (
# cgofuse uses the fuse2 header locations on darwin
if stdenv.hostPlatform.isDarwin then (macfuse-stubs.override { isFuse3 = false; }) else fuse3
);
tags = [ "fuse3" ] ++ lib.optionals enableCmount [ "cmount" ];
tags =
lib.optionals (!stdenv.hostPlatform.isDarwin) [ "fuse3" ]
++ lib.optionals enableCmount [ "cmount" ];
ldflags = [
"-s"