diff --git a/pkgs/servers/web-apps/lemmy/server.nix b/pkgs/servers/web-apps/lemmy/server.nix index 9c573d048104..c3cb5c6444e1 100644 --- a/pkgs/servers/web-apps/lemmy/server.nix +++ b/pkgs/servers/web-apps/lemmy/server.nix @@ -66,7 +66,7 @@ rustPlatform.buildRustPackage rec { # This gets installed automatically by cargoInstallHook, # but we don't actually need it, and it leaks a reference to rustc. - postInstall = '' + postInstall = lib.optionals (!stdenv.hostPlatform.isDarwin) '' rm $out/lib/libhtml2md.so '';