about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libofx
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libofx')
-rw-r--r--nixpkgs/pkgs/development/libraries/libofx/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libofx/default.nix b/nixpkgs/pkgs/development/libraries/libofx/default.nix
new file mode 100644
index 000000000000..dc40086ad0a7
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libofx/default.nix
@@ -0,0 +1,27 @@
+{ lib, stdenv, fetchFromGitHub, opensp, pkg-config, libxml2, curl
+, autoconf, automake, libtool, gengetopt, libiconv }:
+
+stdenv.mkDerivation rec {
+  pname = "libofx";
+  version = "0.10.1";
+
+  src = fetchFromGitHub {
+    owner = "LibOFX";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-QIasZKwSD9YCidHCxT/HOThxE5HEQWD0I2/loDP6mlU=";
+  };
+
+  preConfigure = "./autogen.sh";
+  configureFlags = [ "--with-opensp-includes=${opensp}/include/OpenSP" ];
+  nativeBuildInputs = [ pkg-config libtool autoconf automake gengetopt ];
+  buildInputs = [ opensp libxml2 curl ] ++ lib.optional stdenv.isDarwin libiconv;
+
+  meta = {
+    description = "Opensource implementation of the Open Financial eXchange specification";
+    homepage = "http://libofx.sourceforge.net/";
+    license = "LGPL";
+    platforms = lib.platforms.unix;
+    maintainers = [ ];
+  };
+}