libndtypes: add dev
output
This commit is contained in:
parent
48a753219e
commit
7524d6850a
@ -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";
|
||||
|
@ -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"]' \
|
||||
|
@ -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"]' \
|
||||
|
Loading…
Reference in New Issue
Block a user