texlab: fix darwin build
This commit is contained in:
parent
12103ae09f
commit
e3f825bdc2
@ -3,7 +3,9 @@
|
|||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, libiconv
|
||||||
, Security
|
, Security
|
||||||
|
, CoreServices
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -23,7 +25,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security CoreServices ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installManPage texlab.1
|
installManPage texlab.1
|
||||||
@ -32,9 +34,9 @@ rustPlatform.buildRustPackage rec {
|
|||||||
# links to the generated rlib and doesn't reference the dylib. I
|
# 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.
|
# 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
|
# 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"
|
rmdir "$out/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An implementation of the Language Server Protocol for LaTeX";
|
description = "An implementation of the Language Server Protocol for LaTeX";
|
||||||
|
@ -13796,7 +13796,7 @@ in
|
|||||||
texi2mdoc = callPackage ../tools/misc/texi2mdoc { };
|
texi2mdoc = callPackage ../tools/misc/texi2mdoc { };
|
||||||
|
|
||||||
texlab = callPackage ../development/tools/misc/texlab {
|
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 { };
|
tflint = callPackage ../development/tools/analysis/tflint { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user