Skip to content

Commit

Permalink
texlab: fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhen Shymotiuk authored and Jonathan Ringer committed May 19, 2021
1 parent 12103ae commit e3f825b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions pkgs/development/tools/misc/texlab/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
, rustPlatform
, fetchFromGitHub
, installShellFiles
, libiconv
, Security
, CoreServices
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -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
Expand All @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit e3f825b

Please sign in to comment.