2009-10-19 12:50:37 +00:00
|
|
|
{ fetchurl, stdenv }:
|
|
|
|
|
2017-03-17 21:44:16 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cfitsio-3.41";
|
2009-10-19 12:50:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-03-17 21:44:16 +00:00
|
|
|
url = "ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3410.tar.gz";
|
|
|
|
sha256 = "0k3knn5hz1vhzzvm46xa1y6fnpliwkwgw76lnkf4amcnl5zaqmm5";
|
2009-10-19 12:50:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Shared-only build
|
|
|
|
buildFlags = "shared";
|
2017-03-17 21:44:16 +00:00
|
|
|
patchPhase = '' sed -e '/^install:/s/libcfitsio.a //' -e 's@/bin/@@g' -i Makefile.in
|
2009-10-19 12:50:37 +00:00
|
|
|
'';
|
|
|
|
|
2017-03-17 21:44:16 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 21:50:51 +00:00
|
|
|
homepage = https://heasarc.gsfc.nasa.gov/fitsio/;
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Library for reading and writing FITS data files";
|
2009-10-19 12:50:37 +00:00
|
|
|
longDescription =
|
|
|
|
'' CFITSIO is a library of C and Fortran subroutines for reading and
|
|
|
|
writing data files in FITS (Flexible Image Transport System) data
|
|
|
|
format. CFITSIO provides simple high-level routines for reading and
|
|
|
|
writing FITS files that insulate the programmer from the internal
|
|
|
|
complexities of the FITS format. CFITSIO also provides many
|
|
|
|
advanced features for manipulating and filtering the information in
|
|
|
|
FITS files.
|
|
|
|
'';
|
|
|
|
# Permissive BSD-style license.
|
|
|
|
license = "permissive";
|
2017-03-17 21:44:16 +00:00
|
|
|
platforms = platforms.linux;
|
2009-10-19 12:50:37 +00:00
|
|
|
};
|
2008-01-28 19:46:59 +00:00
|
|
|
}
|