Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
973 B
Nix
45 lines
973 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
boost,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "quantlib";
|
|
version = "1.39";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lballabio";
|
|
repo = "QuantLib";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-UrFamEIeFTR0finNGESlDYbvrmD8jtv73tDUJ17P7WA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
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; {
|
|
description = "Free/open-source library for quantitative finance";
|
|
homepage = "https://quantlib.org";
|
|
changelog = "https://github.com/lballabio/QuantLib/releases/tag/v${finalAttrs.version}";
|
|
platforms = platforms.unix;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.kupac ];
|
|
};
|
|
})
|