libndtypes: add dev output

This commit is contained in:
Peder Bergebakken Sundt 2023-11-18 18:22:54 +01:00 committed by Yt
parent 48a753219e
commit 7524d6850a
3 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,5 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitHub
}:
@ -6,6 +7,8 @@ stdenv.mkDerivation {
pname = "libndtypes";
version = "unstable-2019-08-01";
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "xnd-project";
repo = "ndtypes";

View File

@ -39,7 +39,7 @@ buildPythonPackage {
postPatch = ''
substituteInPlace setup.py \
--replace 'add_include_dirs = [".", "libgumath", "ndtypes/python/ndtypes", "xnd/python/xnd"] + INCLUDES' \
'add_include_dirs = [".", "${libndtypes}/include", "${libxnd}/include", "${libgumath}/include"]' \
'add_include_dirs = [".", "${libndtypes.dev}/include", "${libxnd}/include", "${libgumath}/include"]' \
--replace 'add_library_dirs = ["libgumath", "ndtypes/libndtypes", "xnd/libxnd"] + LIBS' \
'add_library_dirs = ["${libndtypes}/lib", "${libxnd}/lib", "${libgumath}/lib"]' \
--replace 'add_runtime_library_dirs = ["$ORIGIN"]' \

View File

@ -17,7 +17,7 @@ buildPythonPackage {
postPatch = ''
substituteInPlace setup.py \
--replace 'include_dirs = ["libndtypes"]' \
'include_dirs = ["${libndtypes}/include"]' \
'include_dirs = ["${libndtypes.dev}/include"]' \
--replace 'library_dirs = ["libndtypes"]' \
'library_dirs = ["${libndtypes}/lib"]' \
--replace 'runtime_library_dirs = ["$ORIGIN"]' \