19 stdenv.mkDerivation (finalAttrs: {
20 pname = "libqalculate";
23 src = fetchFromGitHub {
25 repo = "libqalculate";
26 rev = "v${finalAttrs.version}";
27 sha256 = "sha256-4WqKlwVf4/ixVr98lPFVfNL6EOIfHHfL55xLsYqxkhY=";
30 outputs = [ "out" "dev" "doc" ];
39 buildPackages.stdenv.cc
48 propagatedBuildInputs = [
53 enableParallelBuilding = true;
60 substituteInPlace libqalculate/Calculator-plot.cc \
61 --replace 'commandline = "gnuplot"' 'commandline = "${gnuplot}/bin/gnuplot"' \
62 --replace '"gnuplot - ' '"${gnuplot}/bin/gnuplot - '
63 '' + lib.optionalString stdenv.cc.isClang ''
64 substituteInPlace src/qalc.cc \
65 --replace 'printf(_("aborted"))' 'printf("%s", _("aborted"))'
75 description = "An advanced calculator library";
76 homepage = "http://qalculate.github.io";
77 license = licenses.gpl2Plus;
78 maintainers = with maintainers; [ gebner doronbehar alyaeanyx ];
80 platforms = platforms.all;