texlab: fix darwin build

This commit is contained in:
Yevhen Shymotiuk 2021-05-18 19:15:41 +03:00 committed by Jonathan Ringer
parent 12103ae09f
commit e3f825bdc2
2 changed files with 6 additions and 4 deletions

View file

@ -3,7 +3,9 @@
, rustPlatform
, fetchFromGitHub
, installShellFiles
, libiconv
, Security
, CoreServices
}:
rustPlatform.buildRustPackage rec {
@ -23,7 +25,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security CoreServices ];
postInstall = ''
installManPage texlab.1
@ -32,9 +34,9 @@ rustPlatform.buildRustPackage rec {
# links to the generated rlib and doesn't reference the dylib. I
# couldn't find any way to prevent building this by passing cargo flags.
# See https://gitlab.com/Kanedias/html2md/-/blob/0.2.10/Cargo.toml#L20
rm "$out/lib/libhtml2md.so"
rm "$out/lib/libhtml2md${stdenv.hostPlatform.extensions.sharedLibrary}"
rmdir "$out/lib"
'';
'';
meta = with lib; {
description = "An implementation of the Language Server Protocol for LaTeX";

View file

@ -13796,7 +13796,7 @@ in
texi2mdoc = callPackage ../tools/misc/texi2mdoc { };
texlab = callPackage ../development/tools/misc/texlab {
inherit (darwin.apple_sdk.frameworks) Security;
inherit (darwin.apple_sdk.frameworks) Security CoreServices;
};
tflint = callPackage ../development/tools/analysis/tflint { };