Commit 7524d685 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by Yt
Browse files

libndtypes: add `dev` output

parent 48a75321
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
{ 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";
+1 −1
Original line number Diff line number Diff line
@@ -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"]' \
+1 −1
Original line number Diff line number Diff line
@@ -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"]' \