20 stdenv.mkDerivation (finalAttrs: {
21 pname = "libqalculate";
24 src = fetchFromGitHub {
26 repo = "libqalculate";
27 rev = "v${finalAttrs.version}";
28 hash = "sha256-lyewx2dc8EywDvLnOkbrys5ObMR7BkEppN/cpWHPBbg=";
44 buildPackages.stdenv.cc
53 propagatedBuildInputs = [
58 enableParallelBuilding = true;
66 substituteInPlace libqalculate/Calculator-plot.cc \
67 --replace 'commandline = "gnuplot"' 'commandline = "${gnuplot}/bin/gnuplot"' \
68 --replace '"gnuplot - ' '"${gnuplot}/bin/gnuplot - '
70 + lib.optionalString stdenv.cc.isClang ''
71 substituteInPlace src/qalc.cc \
72 --replace 'printf(_("aborted"))' 'printf("%s", _("aborted"))'
82 description = "Advanced calculator library";
83 homepage = "http://qalculate.github.io";
84 license = licenses.gpl2Plus;
85 maintainers = with maintainers; [
91 platforms = platforms.all;