tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
numcpp: 2.13.0 -> 2.14.1
emaryn
8 months ago
dfd3a4fa
1bc34e69
+28
-8
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
nu
numcpp
package.nix
pytest-CMakeLists.patch
+10
-8
pkgs/by-name/nu/numcpp/package.nix
···
9
9
}:
10
10
stdenv.mkDerivation (finalAttrs: {
11
11
pname = "numcpp";
12
12
-
version = "2.13.0";
12
12
+
version = "2.14.1";
13
13
14
14
src = fetchFromGitHub {
15
15
owner = "dpilger26";
16
16
repo = "NumCpp";
17
17
-
rev = "Version_${finalAttrs.version}";
18
18
-
hash = "sha256-+2xd8GNMSKPz801lfMAcHIkmidKd+xM8YblkdFj3HZk=";
17
17
+
tag = "Version_${finalAttrs.version}";
18
18
+
hash = "sha256-8ghHTRneLeiFgzF9zHFjFu46qopc3l2Svku1H06XQTw=";
19
19
};
20
20
+
21
21
+
patches = [ ./pytest-CMakeLists.patch ];
20
22
21
23
nativeCheckInputs = [
22
24
gtest
···
36
38
37
39
postInstall = ''
38
40
substituteInPlace $out/share/NumCpp/cmake/NumCppConfig.cmake \
39
39
-
--replace "\''${PACKAGE_PREFIX_DIR}/" ""
41
41
+
--replace-fail "\''${PACKAGE_PREFIX_DIR}/" ""
40
42
'';
41
43
42
44
NIX_CFLAGS_COMPILE = "-Wno-error";
43
45
44
44
-
meta = with lib; {
46
46
+
meta = {
45
47
description = "Templatized Header Only C++ Implementation of the Python NumPy Library";
46
48
homepage = "https://github.com/dpilger26/NumCpp";
47
47
-
license = licenses.mit;
48
48
-
maintainers = with maintainers; [ spalf ];
49
49
-
platforms = platforms.unix;
49
49
+
license = lib.licenses.mit;
50
50
+
maintainers = with lib.maintainers; [ spalf ];
51
51
+
platforms = lib.platforms.unix;
50
52
};
51
53
})
+18
pkgs/by-name/nu/numcpp/pytest-CMakeLists.patch
···
1
1
+
add --embed to $PYTHON_LD_FLAGS and strip a preceding whitespace to conform to CMP0004
2
2
+
3
3
+
--- a/test/pytest/src/CMakeLists.txt
4
4
+
+++ b/test/pytest/src/CMakeLists.txt
5
5
+
@@ -56,11 +56,12 @@ find_package(Python 3.11 REQUIRED
6
6
+
if(UNIX)
7
7
+
execute_process(
8
8
+
COMMAND
9
9
+
- python3-config --ldflags
10
10
+
+ python3-config --embed --ldflags
11
11
+
OUTPUT_VARIABLE
12
12
+
PYTHON_LD_FLAGS
13
13
+
OUTPUT_STRIP_TRAILING_WHITESPACE
14
14
+
)
15
15
+
+ string(STRIP ${PYTHON_LD_FLAGS} PYTHON_LD_FLAGS)
16
16
+
endif()
17
17
+
18
18
+
target_link_libraries(${TARGET_NAME} PRIVATE