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