rPackages.talib: fix build

This commit is contained in:
TomaSajt
2026-07-22 03:07:04 +02:00
parent 9b6076af92
commit 4c996b0a9c

View File

@@ -937,6 +937,7 @@ let
symbolicQspray = [ pkgs.pkg-config ];
sysfonts = [ pkgs.pkg-config ];
systemfonts = [ pkgs.pkg-config ];
talib = [ pkgs.pkg-config ];
tergo = with pkgs; [
cargo
rustc
@@ -1698,6 +1699,7 @@ let
fontconfig
freetype
];
talib = [ pkgs.ta-lib ];
tcltk2 = with pkgs; [
tcl
tk
@@ -2839,6 +2841,13 @@ let
'';
});
talib = old.talib.overrideAttrs (attrs: {
# the conftest.c compilation test fails because for some reason ta-lib doesn't link libm
env = (attrs.env or { }) // {
NIX_LDFLAGS = (attrs.env.NIX_LDFLAGS or "") + " -lm";
};
});
tesseract = old.tesseract.overrideAttrs (_: {
preConfigure = ''
substituteInPlace configure \