mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-11 18:24:50 +03:00
Use extensions.sharedLibrary rather than hardcoded extensions.
This commit is contained in:
parent
6cbeea1f19
commit
abd873208f
1 changed files with 1 additions and 1 deletions
|
@ -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}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue