mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-21 06:38:40 +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-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}";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue