nixpkgs/pkgs/development/libraries/libqalculate/default.nix
Ryan Mulligan 3051ddd49d libqalculate: 2.2.1 -> 2.3.0
Semi-automatic update generated by https://github.com/ryantm/nix-update tools.

This update was made based on information from https://repology.org/metapackage/libqalculate/versions.

These checks were done:

- built on NixOS
- ran `/nix/store/llqc0hh85xfdxqzkwzxqxhjjjck4vbh7-libqalculate-2.3.0/bin/qalc -h` got 0 exit code
- ran `/nix/store/llqc0hh85xfdxqzkwzxqxhjjjck4vbh7-libqalculate-2.3.0/bin/qalc --help` got 0 exit code
- ran `/nix/store/llqc0hh85xfdxqzkwzxqxhjjjck4vbh7-libqalculate-2.3.0/bin/qalc help` got 0 exit code
- ran `/nix/store/llqc0hh85xfdxqzkwzxqxhjjjck4vbh7-libqalculate-2.3.0/bin/qalc -v` and found version 2.3.0
- ran `/nix/store/llqc0hh85xfdxqzkwzxqxhjjjck4vbh7-libqalculate-2.3.0/bin/qalc --version` and found version 2.3.0
- found 2.3.0 with grep in /nix/store/llqc0hh85xfdxqzkwzxqxhjjjck4vbh7-libqalculate-2.3.0
- directory tree listing: https://gist.github.com/6f930e6da5dc3ef9c09229cc76f36a31
2018-03-31 17:42:47 +02:00

46 lines
1.3 KiB
Nix

{ stdenv, fetchurl, mpfr, libxml2, intltool, pkgconfig, doxygen,
autoreconfHook, readline, libiconv, icu, curl, gnuplot, gettext }:
stdenv.mkDerivation rec {
name = "libqalculate-${version}";
version = "2.3.0";
src = fetchurl {
url = "https://github.com/Qalculate/libqalculate/archive/v${version}.tar.gz";
sha256 = "1wrd9ajf00h1ja56r25vljjsgklg0qlzmziax7x26wjqkigc28iq";
};
outputs = [ "out" "dev" "doc" ];
nativeBuildInputs = [ intltool pkgconfig autoreconfHook doxygen ];
buildInputs = [ curl gettext libiconv readline ];
propagatedBuildInputs = [ libxml2 mpfr icu ];
enableParallelBuilding = true;
preConfigure = ''
intltoolize -f
'';
patchPhase = ''
substituteInPlace libqalculate/Calculator.cc \
--replace 'commandline = "gnuplot"' 'commandline = "${gnuplot}/bin/gnuplot"' \
--replace '"gnuplot -"' '"${gnuplot}/bin/gnuplot -"'
'' + stdenv.lib.optionalString stdenv.cc.isClang ''
substituteInPlace src/qalc.cc \
--replace 'printf(_("aborted"))' 'printf("%s", _("aborted"))'
'';
preBuild = ''
pushd docs/reference
doxygen Doxyfile
popd
'';
meta = with stdenv.lib; {
description = "An advanced calculator library";
homepage = http://qalculate.github.io;
maintainers = with maintainers; [ gebner ];
platforms = platforms.all;
};
}