We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3676460 commit 66dd6a0Copy full SHA for 66dd6a0
flake.nix
@@ -114,9 +114,13 @@
114
]);
115
preBuild = lib.optionalString enablePython ''
116
make -C python bifrost/libbifrost_generated.py
117
- sed "s:\(load_library\)(\"bifrost\"):\1('$out/lib/libbifrost.so'):"\
+ sed -e "s:^add_library_search_dirs(\[:&'$out/lib':" \
118
+ -e 's:name_formats = \["%s":&,"lib%s","lib%s.so":' \
119
-i python/bifrost/libbifrost_generated.py
120
'';
121
+ # This can be a helpful addition to above sed; prints each path
122
+ # tried when loading library:
123
+ # -e "s:return self\.Lookup(path):print(path); &:" \
124
makeFlags =
125
lib.optionals enableCuda [ "CUDA_LIBDIR64=$(CUDA_HOME)/lib" ];
126
preInstall = ''
0 commit comments