diff options
author | Karl Hallsby <karl@hallsby.com> | 2021-01-06 10:57:06 -0600 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2021-02-24 21:00:49 +0200 |
commit | df13f16837694910e1b86bbc51da5306e89efe84 (patch) | |
tree | 6a645c86d00e6b2db7bcb327a593e6539640cd6e /pkgs/development | |
parent | 6ad87c34ddce64dab64fcd9e05e376be650a3483 (diff) |
octave.pkgs.fits: init at 1.0.7
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/octave-modules/fits/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/octave-modules/fits/default.nix b/pkgs/development/octave-modules/fits/default.nix new file mode 100644 index 0000000000000..9d236cb9f1fa5 --- /dev/null +++ b/pkgs/development/octave-modules/fits/default.nix @@ -0,0 +1,41 @@ +{ buildOctavePackage +, lib +, fetchurl +, cfitsio +, hdf5 +, pkg-config +}: + +buildOctavePackage rec { + pname = "fits"; + version = "1.0.7"; + + src = fetchurl { + url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz"; + sha256 = "0jab5wmrpifqphmrfkqcyrlpc0h4y4m735yc3avqqjajz1rl24lm"; + }; + + # Found here: https://build.opensuse.org/package/view_file/science/octave-forge-fits/octave-forge-fits.spec?expand=1 + patchPhase = '' + sed -i -s -e 's/D_NINT/octave::math::x_nint/g' src/*.cc + ''; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + hdf5 + ]; + + propagatedBuildInputs = [ + cfitsio + ]; + + meta = with lib; { + homepage = "https://octave.sourceforge.io/fits/index.html"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ KarlJoad ]; + description = "Functions for reading, and writing FITS (Flexible Image Transport System) files using cfitsio"; + }; +} |