From 10bef0e28f16eaa77bd710c58679b9360205f97e Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 4 Jun 2022 08:45:51 -0400 Subject: [PATCH] texlab: remove unused dylib of human_name --- pkgs/development/tools/misc/texlab/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/misc/texlab/default.nix b/pkgs/development/tools/misc/texlab/default.nix index 47f08d4dcc8..a051087bdd2 100644 --- a/pkgs/development/tools/misc/texlab/default.nix +++ b/pkgs/development/tools/misc/texlab/default.nix @@ -30,6 +30,13 @@ rustPlatform.buildRustPackage rec { postInstall = '' installManPage texlab.1 + + # Remove generated dylib of human_name dependency. TexLab statically + # 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://github.com/djudd/human-name/blob/master/Cargo.toml#L43 + rm "$out/lib/libhuman_name${stdenv.hostPlatform.extensions.sharedLibrary}" + rmdir "$out/lib" ''; passthru.updateScript = nix-update-script {