octave.pkgs.fits: init at 1.0.7
This commit is contained in:
parent
6ad87c34dd
commit
df13f16837
41
pkgs/development/octave-modules/fits/default.nix
Normal file
41
pkgs/development/octave-modules/fits/default.nix
Normal file
|
@ -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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -89,6 +89,8 @@ makeScope newScope (self:
|
||||||
ffc = null;
|
ffc = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fits = callPackage ../development/octave-modules/fits { };
|
||||||
|
|
||||||
financial = callPackage ../development/octave-modules/financial { };
|
financial = callPackage ../development/octave-modules/financial { };
|
||||||
|
|
||||||
general = callPackage ../development/octave-modules/general {
|
general = callPackage ../development/octave-modules/general {
|
||||||
|
|
Loading…
Reference in a new issue