From 6ad87c34ddce64dab64fcd9e05e376be650a3483 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Wed, 6 Jan 2021 10:56:20 -0600 Subject: [PATCH] octave.pkgs.financial: init at 0.5.3 --- .../octave-modules/financial/default.nix | 23 +++++++++++++++++++ pkgs/top-level/octave-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/octave-modules/financial/default.nix diff --git a/pkgs/development/octave-modules/financial/default.nix b/pkgs/development/octave-modules/financial/default.nix new file mode 100644 index 00000000000..5fb6a00df78 --- /dev/null +++ b/pkgs/development/octave-modules/financial/default.nix @@ -0,0 +1,23 @@ +{ buildOctavePackage +, lib +, fetchurl +, io +, statistics +}: + +buildOctavePackage rec { + pname = "financial"; + version = "0.5.3"; + + src = fetchurl { + url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz"; + sha256 = "0f963yg6pwvrdk5fg7b71ny47gzy48nqxdzj2ngcfrvmb5az4vmf"; + }; + + meta = with lib; { + homepage = "https://octave.sourceforge.io/financial/index.html"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ KarlJoad ]; + description = "Monte Carlo simulation, options pricing routines, financial manipulation, plotting functions and additional date manipulation tools"; + }; +} diff --git a/pkgs/top-level/octave-packages.nix b/pkgs/top-level/octave-packages.nix index 838448ccbe8..c1fef7aca05 100644 --- a/pkgs/top-level/octave-packages.nix +++ b/pkgs/top-level/octave-packages.nix @@ -89,6 +89,8 @@ makeScope newScope (self: ffc = null; }; + financial = callPackage ../development/octave-modules/financial { }; + general = callPackage ../development/octave-modules/general { nettle = pkgs.nettle; };