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