2009-10-19 14:50:37 +02:00
|
|
|
{ fetchurl, stdenv }:
|
|
|
|
|
2017-03-17 22:44:16 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-03-14 09:26:40 +01:00
|
|
|
name = "cfitsio-3.430";
|
2009-10-19 14:50:37 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-05 00:48:00 +01:00
|
|
|
url = "ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3430.tar.gz";
|
2018-03-14 09:26:40 +01:00
|
|
|
sha256 = "07fghxh5fl8nqk3q0dh8rvc83npnm0hisxzcj16a6r7gj5pmp40l";
|
2009-10-19 14:50:37 +02:00
|
|
|
};
|
|
|
|
|
2018-05-31 11:55:10 +02:00
|
|
|
patches = [ ./darwin-curl-config.patch ./darwin-rpath-universal.patch ];
|
2018-05-30 14:31:07 +02:00
|
|
|
|
2009-10-19 14:50:37 +02:00
|
|
|
# Shared-only build
|
|
|
|
buildFlags = "shared";
|
2018-05-30 14:31:07 +02:00
|
|
|
postPatch = '' sed -e '/^install:/s/libcfitsio.a //' -e 's@/bin/@@g' -i Makefile.in
|
2009-10-19 14:50:37 +02:00
|
|
|
'';
|
|
|
|
|
2017-03-17 22:44:16 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://heasarc.gsfc.nasa.gov/fitsio/;
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Library for reading and writing FITS data files";
|
2009-10-19 14:50:37 +02: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";
|
2018-05-30 14:31:07 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2009-10-19 14:50:37 +02:00
|
|
|
};
|
2008-01-28 20:46:59 +01:00
|
|
|
}
|