2021-10-29 02:00:58 +00:00
|
|
|
{ stdenv, lib, fetchurl, bzip2, zlib }:
|
|
|
|
|
2019-05-10 12:11:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-07-17 12:00:46 +00:00
|
|
|
pname = "cfitsio";
|
2022-03-17 05:21:40 +00:00
|
|
|
version = "4.1.0";
|
2009-10-19 12:50:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-07-17 12:00:46 +00:00
|
|
|
url = "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-${version}.tar.gz";
|
2022-03-17 05:21:40 +00:00
|
|
|
sha256 = "sha256-s2fGldKDGVjnFmkhw7NW1d+lGx7O5QW5dBa6OdG2wXo=";
|
2009-10-19 12:50:37 +00:00
|
|
|
};
|
|
|
|
|
2021-10-29 02:00:58 +00:00
|
|
|
buildInputs = [ bzip2 zlib ];
|
2019-05-10 12:11:07 +00:00
|
|
|
|
2019-07-17 12:00:46 +00:00
|
|
|
patches = [ ./darwin-rpath-universal.patch ];
|
2018-05-30 12:31:07 +00:00
|
|
|
|
2021-02-13 17:48:41 +00:00
|
|
|
configureFlags = [ "--with-bzip2=${bzip2.out}" ];
|
2019-05-10 12:11:07 +00:00
|
|
|
|
2019-07-17 12:00:46 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2009-10-19 12:50:37 +00:00
|
|
|
# Shared-only build
|
2019-10-27 13:03:25 +00:00
|
|
|
buildFlags = [ "shared" ];
|
2018-05-30 12:31:07 +00:00
|
|
|
postPatch = '' sed -e '/^install:/s/libcfitsio.a //' -e 's@/bin/@@g' -i Makefile.in
|
2009-10-19 12:50:37 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11: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.
|
|
|
|
'';
|
2021-10-29 02:00:58 +00:00
|
|
|
changelog = "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/docs/changes.txt";
|
2019-05-10 12:11:07 +00:00
|
|
|
license = licenses.mit;
|
2021-12-02 04:04:14 +00:00
|
|
|
maintainers = with maintainers; [ xbreak hjones2199 ];
|
2018-05-30 12:31:07 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2009-10-19 12:50:37 +00:00
|
|
|
};
|
2008-01-28 19:46:59 +00:00
|
|
|
}
|