cfitsio: 3.430 -> 3.450

The derivation is also updated to optionally build cfitsio with bzip2
support (enabled by default).
This commit is contained in:
xbreak 2019-05-10 12:11:07 +00:00
parent fa2c6dc3c2
commit 152b1e4dbc

View File

@ -1,15 +1,23 @@
{ fetchurl, stdenv }: { fetchurl, stdenv
stdenv.mkDerivation { # Optional dependencies
name = "cfitsio-3.430"; , bzip2 ? null }:
stdenv.mkDerivation rec {
name = "cfitsio-${version}";
version = "3.450";
src = fetchurl { src = fetchurl {
url = "ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3430.tar.gz"; url = "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio${builtins.replaceStrings ["."] [""] version}.tar.gz";
sha256 = "07fghxh5fl8nqk3q0dh8rvc83npnm0hisxzcj16a6r7gj5pmp40l"; sha256 = "0bmrkw6w65zb0k3mszaaqy1f4zjm2hl7njww74nb5v38wvdi4q5z";
}; };
buildInputs = [ bzip2 ];
patches = [ ./darwin-curl-config.patch ./darwin-rpath-universal.patch ]; patches = [ ./darwin-curl-config.patch ./darwin-rpath-universal.patch ];
configureFlags = stdenv.lib.optional (bzip2 != null) "--with-bzip2=${bzip2.out}";
# Shared-only build # Shared-only build
buildFlags = "shared"; buildFlags = "shared";
postPatch = '' sed -e '/^install:/s/libcfitsio.a //' -e 's@/bin/@@g' -i Makefile.in postPatch = '' sed -e '/^install:/s/libcfitsio.a //' -e 's@/bin/@@g' -i Makefile.in
@ -27,8 +35,8 @@
advanced features for manipulating and filtering the information in advanced features for manipulating and filtering the information in
FITS files. FITS files.
''; '';
# Permissive BSD-style license. license = licenses.mit;
license = "permissive"; maintainers = [ maintainers.xbreak ];
platforms = with platforms; linux ++ darwin; platforms = with platforms; linux ++ darwin;
}; };
} }