From 0b7b03d62cf013f8ebb0c134f9d992f28640dd24 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Wed, 6 Jan 2021 11:18:18 -0600 Subject: [PATCH] octave.pkgs.lssa: init at 0.1.4 --- .../octave-modules/lssa/default.nix | 27 +++++++++++++++++++ pkgs/top-level/octave-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/octave-modules/lssa/default.nix diff --git a/pkgs/development/octave-modules/lssa/default.nix b/pkgs/development/octave-modules/lssa/default.nix new file mode 100644 index 000000000000..f737c104f302 --- /dev/null +++ b/pkgs/development/octave-modules/lssa/default.nix @@ -0,0 +1,27 @@ +{ buildOctavePackage +, lib +, fetchurl +}: + +buildOctavePackage rec { + pname = "lssa"; + version = "0.1.4"; + + src = fetchurl { + url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz"; + sha256 = "10h9lzsi7pqh93i7y50b618g05fnbw9n0i505bz5kz4avfa990zh"; + }; + + meta = with lib; { + homepage = "https://octave.sourceforge.io/lssa/index.html"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ KarlJoad ]; + description = "Tools to compute spectral decompositions of irregularly-spaced time series"; + longDescription = '' + A package implementing tools to compute spectral decompositions of + irregularly-spaced time series. Currently includes functions based off + the Lomb-Scargle periodogram and Adolf Mathias' implementation for R + and C. + ''; + }; +} diff --git a/pkgs/top-level/octave-packages.nix b/pkgs/top-level/octave-packages.nix index 61783fed750a..a021f4f1a44d 100644 --- a/pkgs/top-level/octave-packages.nix +++ b/pkgs/top-level/octave-packages.nix @@ -127,6 +127,8 @@ makeScope newScope (self: linear-algebra = callPackage ../development/octave-modules/linear-algebra { }; + lssa = callPackage ../development/octave-modules/lssa { }; + ltfat = callPackage ../development/octave-modules/ltfat { inherit (octave) fftw fftwSinglePrec portaudio jdk; inherit (pkgs) fftwFloat fftwLongDouble;