Merge pull request #300087 from Kupac/fix_quantlib
rPackages.RQuantLib: Fix quantlib
This commit is contained in:
commit
beb6277527
|
@ -7,25 +7,33 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "quantlib";
|
pname = "quantlib";
|
||||||
version = "1.29";
|
version = "1.33";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lballabio";
|
owner = "lballabio";
|
||||||
repo = "QuantLib";
|
repo = "QuantLib";
|
||||||
rev = "QuantLib-v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-TpVn3zPru/GtdNqDH45YdOkm7fkJzv/qay9SY3J6Jiw=";
|
sha256 = "sha256-j2nRm6ebf5OU6mqmcC7wQf/qlf/K9RmmCAnfT+Au8ZM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ boost ];
|
buildInputs = [ boost ];
|
||||||
|
|
||||||
|
# Required by RQuantLib, may be beneficial for others too
|
||||||
|
cmakeFlags = [ "-DQL_HIGH_RESOLUTION_DATE=ON" ];
|
||||||
|
|
||||||
|
# Needed for RQuantLib and possible others
|
||||||
|
postInstall = ''
|
||||||
|
cp ./quantlib-config $out/bin/
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A free/open-source library for quantitative finance";
|
description = "A free/open-source library for quantitative finance";
|
||||||
homepage = "https://quantlib.org";
|
homepage = "https://quantlib.org";
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [];
|
maintainers = [ maintainers.kupac ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -578,6 +578,7 @@ let
|
||||||
odbc = [ pkgs.pkg-config ];
|
odbc = [ pkgs.pkg-config ];
|
||||||
openssl = [ pkgs.pkg-config ];
|
openssl = [ pkgs.pkg-config ];
|
||||||
pdftools = [ pkgs.pkg-config ];
|
pdftools = [ pkgs.pkg-config ];
|
||||||
|
RQuantLib = with pkgs; [ quantlib.dev boost.dev ];
|
||||||
sf = with pkgs; [ pkg-config sqlite.dev proj.dev ];
|
sf = with pkgs; [ pkg-config sqlite.dev proj.dev ];
|
||||||
terra = with pkgs; [ pkg-config sqlite.dev proj.dev ];
|
terra = with pkgs; [ pkg-config sqlite.dev proj.dev ];
|
||||||
showtext = [ pkgs.pkg-config ];
|
showtext = [ pkgs.pkg-config ];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user