Merge pull request #176240 from kira-bruneau/texlab

texlab: remove unused dylib of human_name
This commit is contained in:
Doron Behar 2022-06-04 16:49:19 +03:00 committed by GitHub
commit 093d2bdd74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {