summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2023-11-18 18:22:54 +0100
committerYt <happysalada@tuta.io>2023-11-20 12:53:47 +0000
commit7524d6850a50c112f25e4aae609f308492ec49a6 (patch)
tree786aac8f25cada22ecf845cf82ef54ff0aef2f1f /pkgs/development
parent48a753219ede79d448cd0aa3bbf29d29fcbab8c9 (diff)
libndtypes: add `dev` output
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/libndtypes/default.nix5
-rw-r--r--pkgs/development/python-modules/gumath/default.nix2
-rw-r--r--pkgs/development/python-modules/ndtypes/default.nix2
3 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libndtypes/default.nix b/pkgs/development/libraries/libndtypes/default.nix
index 1f0709af6cfc1..175b48f109348 100644
--- a/pkgs/development/libraries/libndtypes/default.nix
+++ b/pkgs/development/libraries/libndtypes/default.nix
@@ -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";
diff --git a/pkgs/development/python-modules/gumath/default.nix b/pkgs/development/python-modules/gumath/default.nix
index 013662314b72b..7b052fa429c2f 100644
--- a/pkgs/development/python-modules/gumath/default.nix
+++ b/pkgs/development/python-modules/gumath/default.nix
@@ -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"]' \
diff --git a/pkgs/development/python-modules/ndtypes/default.nix b/pkgs/development/python-modules/ndtypes/default.nix
index 75fc5373b4c5a..f3827206deb1e 100644
--- a/pkgs/development/python-modules/ndtypes/default.nix
+++ b/pkgs/development/python-modules/ndtypes/default.nix
@@ -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"]' \