@@ -1,23 +1,27 @@
1−{ stdenv, fetchurl, opensp, pkgconfig, libxml2, curl }:
2−
1+{ stdenv, fetchFromGitHub, opensp, pkgconfig, libxml2, curl
2+, autoconf, automake, libtool, gengetopt, libiconv }:
3+
34stdenv.mkDerivation rec {
4− name = "libofx-0.9.14";
5+ pname = "libofx";
6+ version = "0.9.15";
57
6− src = fetchurl {
7− url = "mirror://sourceforge/libofx/${name}.tar.gz";
8− sha256 = "02i9zxkp66yxjpjay5dscfh53bz5vxy03zcxncpw09svl6zmf9xq";
8+ src = fetchFromGitHub {
9+ owner = "LibOFX";
10+ repo = pname;
11+ rev = version;
12+ sha256 = "1jx56ma351p8af8dvavygjwf6ipa7qbgq7bpdsymwj27apdnixfy";
913 };
1014
15+ preConfigure = "./autogen.sh";
1116 configureFlags = [ "--with-opensp-includes=${opensp}/include/OpenSP" ];
12− nativeBuildInputs = [ pkgconfig ];
13− buildInputs = [ opensp libxml2 curl ];
17+ nativeBuildInputs = [ pkgconfig libtool autoconf automake gengetopt ];
18+ buildInputs = [ opensp libxml2 curl ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
1419
1520 meta = {
1621 description = "Opensource implementation of the Open Financial eXchange specification";
1722 homepage = http://libofx.sourceforge.net/;
1823 license = "LGPL";
19− platforms = stdenv.lib.platforms.linux;
24+ platforms = stdenv.lib.platforms.unix;
2025 maintainers = [ ];
2126 };
2227}
23−