nixos/fileSystems: link to mount(8) from fileSystems.*.options (#377170)
[NixPkgs.git] / pkgs / by-name / fi / fitsverify / package.nix
blobc0cd705be1fc3b060d07782ba2282f9b7c4a2da4
2   lib,
3   stdenv,
4   fetchurl,
5   cfitsio,
6 }:
8 stdenv.mkDerivation (finalAttrs: {
9   pname = "fitsverify";
10   version = "4.22";
12   src = fetchurl {
13     url = "https://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/fitsverify-${finalAttrs.version}.tar.gz";
14     hash = "sha256-bEXoA6fg7by30TkYYVuuY2HSszPCkrhJxQnsm+vbGLQ=";
15   };
17   buildInputs = [
18     cfitsio
19   ];
21   # See build instructions in the README file in src.
22   buildPhase = ''
23     $CC -o fitsverify ftverify.c fvrf_data.c fvrf_file.c fvrf_head.c \
24        fvrf_key.c fvrf_misc.c -DSTANDALONE \
25        $NIX_CFLAGS_COMPILE \
26        -lcfitsio
27   '';
29   installPhase = ''
30     install -D fitsverify $out/bin/fitsverify
31   '';
33   meta = with lib; {
34     description = "FITS File Format-Verification Tool";
35     mainProgram = "fitsverify";
36     longDescription = ''
37       Fitsverify is a computer program that rigorously checks whether a FITS
38       (Flexible Image Transport System) data file conforms to all the
39       requirements defined in Version 3.0 of the FITS Standard document.
40     '';
41     homepage = "https://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/";
42     license = licenses.mit;
43     platforms = with platforms; linux;
44     maintainers = with maintainers; [ panicgh ];
45   };