diff --git a/pkgs/development/tools/misc/texlab/default.nix b/pkgs/development/tools/misc/texlab/default.nix index 39d64cb74c6..eec1576711d 100644 --- a/pkgs/development/tools/misc/texlab/default.nix +++ b/pkgs/development/tools/misc/texlab/default.nix @@ -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"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5be77c189c1..aed7f5a19b5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };