nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ fetchurl, stdenv }:
2
3 stdenv.mkDerivation {
4 name = "cfitsio-3.41";
5
6 src = fetchurl {
7 url = "ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3410.tar.gz";
8 sha256 = "0k3knn5hz1vhzzvm46xa1y6fnpliwkwgw76lnkf4amcnl5zaqmm5";
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}