2016-06-19 16:33:45 +01:00
|
|
|
{ stdenv, fetchurl, cln, libxml2, glib, intltool, pkgconfig, doxygen, autoreconfHook, readline }:
|
2010-08-15 14:55:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-19 16:33:45 +01:00
|
|
|
name = "libqalculate-${version}";
|
|
|
|
version = "0.9.8";
|
2010-08-15 14:55:02 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-06-19 16:33:45 +01:00
|
|
|
url = "https://github.com/Qalculate/libqalculate/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "07rd95a0wsqs3iymr64mlljn191f8gdnjvr9d4l1spjv3s8j5wdi";
|
2010-08-15 14:55:02 +01:00
|
|
|
};
|
|
|
|
|
2016-06-19 16:33:45 +01:00
|
|
|
nativeBuildInputs = [ intltool pkgconfig autoreconfHook doxygen ];
|
|
|
|
buildInputs = [ readline ];
|
2010-08-15 14:55:02 +01:00
|
|
|
propagatedBuildInputs = [ cln libxml2 glib ];
|
|
|
|
|
2016-06-19 16:33:45 +01:00
|
|
|
preBuild = ''
|
|
|
|
pushd docs/reference
|
|
|
|
doxygen Doxyfile
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2010-08-15 14:55:02 +01:00
|
|
|
description = "An advanced calculator library";
|
2016-06-19 16:33:45 +01:00
|
|
|
homepage = http://qalculate.github.io;
|
|
|
|
maintainers = with maintainers; [ urkud gebner ];
|
|
|
|
platforms = platforms.all;
|
2010-08-15 14:55:02 +01:00
|
|
|
};
|
|
|
|
}
|