1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "ta-lib";
5 version = "0.4.0";
6 src = fetchFromGitHub {
7 owner = "rafa-dot-el";
8 repo = "talib";
9 rev = "${version}";
10 sha256 = "sha256-bIzN8f9ZiOLaVzGAXcZUHUh/v9z1U+zY+MnyjJr1lSw=";
11 };
12
13 nativeBuildInputs = [ pkg-config autoreconfHook ];
14 hardeningDisable = [ "format" ];
15
16 meta = with lib; {
17 description =
18 "TA-Lib is a library that provides common functions for the technical analysis of financial market data.";
19 homepage = "https://ta-lib.org/";
20 license = lib.licenses.bsd3;
21
22 platforms = platforms.linux;
23 maintainers = with maintainers; [ rafael ];
24 };
25}