1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-06-21 14:48:39 +03:00

Use extensions.sharedLibrary rather than hardcoded extensions.

This commit is contained in:
Ben Wolsieffer 2024-07-20 19:35:18 -04:00
parent 6cbeea1f19
commit abd873208f

View file

@ -93,7 +93,7 @@ rosSelf: rosSuper: with rosSelf.lib; {
python-cmake-module = rosSuper.python-cmake-module.overrideAttrs ({ ... }: let python-cmake-module = rosSuper.python-cmake-module.overrideAttrs ({ ... }: let
python = rosSelf.python; python = rosSelf.python;
libExt = if self.stdenv.isDarwin then "dylib" else "so"; libExt = self.stdenv.hostPlatform.extensions.sharedLibrary;
in { in {
pythonExecutable = python.pythonOnBuildForHost.interpreter; pythonExecutable = python.pythonOnBuildForHost.interpreter;
pythonLibrary = "${python}/lib/lib${python.libPrefix}.${libExt}"; pythonLibrary = "${python}/lib/lib${python.libPrefix}.${libExt}";