1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 opensp,
6 pkg-config,
7 libxml2,
8 curl,
9 autoconf,
10 automake,
11 libtool,
12 gengetopt,
13 libiconv,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "libofx";
18 version = "0.10.9";
19
20 src = fetchFromGitHub {
21 owner = "LibOFX";
22 repo = "libofx";
23 rev = version;
24 sha256 = "sha256-KOQrEAt1jHrOpPQ7QbGUADe0i7sQXNH2fblPRzT0EIg=";
25 };
26
27 preConfigure = "./autogen.sh";
28 configureFlags = [ "--with-opensp-includes=${opensp}/include/OpenSP" ];
29 nativeBuildInputs = [
30 pkg-config
31 libtool
32 autoconf
33 automake
34 gengetopt
35 ];
36 buildInputs = [
37 opensp
38 libxml2
39 curl
40 ]
41 ++ lib.optional stdenv.hostPlatform.isDarwin libiconv;
42
43 meta = {
44 description = "Opensource implementation of the Open Financial eXchange specification";
45 homepage = "https://libofx.sourceforge.net/";
46 license = "LGPL";
47 platforms = lib.platforms.unix;
48 maintainers = [ ];
49 };
50}