Skip to content

Commit

Permalink
vimPlugins.codesnap-nvim: use stdenv.hostPlatform.extensions.sharedLi…
Browse files Browse the repository at this point in the history
…brary instead of hardcoding the extension
  • Loading branch information
GaetanLepage committed Sep 15, 2024
1 parent 72bad19 commit 9cbf4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/applications/editors/vim/plugins/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@
# Note: the destination should be generator.so, even on darwin
# https://github.com/mistricky/codesnap.nvim/blob/main/scripts/build_generator.sh
postInstall = let
extension = if stdenv.isDarwin then "dylib" else "so";
extension = stdenv.hostPlatform.extensions.sharedLibrary;
in ''
rm -r $out/lua/*.so
cp ${codesnap-lib}/lib/libgenerator.${extension} $out/lua/generator.so
Expand Down

0 comments on commit 9cbf4aa

Please sign in to comment.