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 = rosSelf.python;
libExt = if self.stdenv.isDarwin then "dylib" else "so";
libExt = self.stdenv.hostPlatform.extensions.sharedLibrary;
in {
pythonExecutable = python.pythonOnBuildForHost.interpreter;
pythonLibrary = "${python}/lib/lib${python.libPrefix}.${libExt}";