lol
at 18.03-beta 32 lines 1.1 kB view raw
1{ fetchurl, stdenv }: 2 3 stdenv.mkDerivation { 4 name = "cfitsio-3.43"; 5 6 src = fetchurl { 7 url = "ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3430.tar.gz"; 8 sha256 = "1rw481bv5srfmldf1h8bqmyljjh0siqh87xh6rip67ms59ssxpn8"; 9 }; 10 11 # Shared-only build 12 buildFlags = "shared"; 13 patchPhase = '' sed -e '/^install:/s/libcfitsio.a //' -e 's@/bin/@@g' -i Makefile.in 14 ''; 15 16 meta = with stdenv.lib; { 17 homepage = https://heasarc.gsfc.nasa.gov/fitsio/; 18 description = "Library for reading and writing FITS data files"; 19 longDescription = 20 '' CFITSIO is a library of C and Fortran subroutines for reading and 21 writing data files in FITS (Flexible Image Transport System) data 22 format. CFITSIO provides simple high-level routines for reading and 23 writing FITS files that insulate the programmer from the internal 24 complexities of the FITS format. CFITSIO also provides many 25 advanced features for manipulating and filtering the information in 26 FITS files. 27 ''; 28 # Permissive BSD-style license. 29 license = "permissive"; 30 platforms = platforms.linux; 31 }; 32}