From 4777d9123a25e0fb3e6d5681c2c2323b2b182a33 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Wed, 6 Jan 2021 11:10:26 -0600 Subject: [PATCH] octave.pkgs.gsl: init at 2.1.1 --- .../octave-modules/gsl/default.nix | 26 +++++++++++++++++++ pkgs/top-level/octave-packages.nix | 4 +++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/octave-modules/gsl/default.nix diff --git a/pkgs/development/octave-modules/gsl/default.nix b/pkgs/development/octave-modules/gsl/default.nix new file mode 100644 index 000000000000..5922c015dbdf --- /dev/null +++ b/pkgs/development/octave-modules/gsl/default.nix @@ -0,0 +1,26 @@ +{ buildOctavePackage +, lib +, fetchurl +, gsl +}: + +buildOctavePackage rec { + pname = "gsl"; + version = "2.1.1"; + + src = fetchurl { + url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz"; + sha256 = "1lvfxbqmw8h1nlrxmvrl6j4xffmbzxfhdpxz3vrc6lg2g4jwaa6h"; + }; + + buildInputs = [ + gsl + ]; + + meta = with lib; { + homepage = "https://octave.sourceforge.io/gsl/index.html"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ KarlJoad ]; + description = "Octave bindings to the GNU Scientific Library"; + }; +} diff --git a/pkgs/top-level/octave-packages.nix b/pkgs/top-level/octave-packages.nix index ba6e1550b414..e55124a3f6bb 100644 --- a/pkgs/top-level/octave-packages.nix +++ b/pkgs/top-level/octave-packages.nix @@ -107,6 +107,10 @@ makeScope newScope (self: geometry = callPackage ../development/octave-modules/geometry { }; + gsl = callPackage ../development/octave-modules/gsl { + inherit (pkgs) gsl; + }; + io = callPackage ../development/octave-modules/io { inherit (octave) enableJava; };