Merge pull request #278717 from panicgh/fitsverify
This commit is contained in:
commit
bc304171c0
1 changed files with 44 additions and 0 deletions
44
pkgs/by-name/fi/fitsverify/package.nix
Normal file
44
pkgs/by-name/fi/fitsverify/package.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, cfitsio
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "fitsverify";
|
||||
version = "4.22";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/fitsverify-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-bEXoA6fg7by30TkYYVuuY2HSszPCkrhJxQnsm+vbGLQ=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
cfitsio
|
||||
];
|
||||
|
||||
# See build instructions in the README file in src.
|
||||
buildPhase = ''
|
||||
$CC -o fitsverify ftverify.c fvrf_data.c fvrf_file.c fvrf_head.c \
|
||||
fvrf_key.c fvrf_misc.c -DSTANDALONE \
|
||||
$NIX_CFLAGS_COMPILE \
|
||||
-lcfitsio
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -D fitsverify $out/bin/fitsverify
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "FITS File Format-Verification Tool";
|
||||
longDescription = ''
|
||||
Fitsverify is a computer program that rigorously checks whether a FITS
|
||||
(Flexible Image Transport System) data file conforms to all the
|
||||
requirements defined in Version 3.0 of the FITS Standard document.
|
||||
'';
|
||||
homepage = "https://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/";
|
||||
license = licenses.mit;
|
||||
platforms = with platforms; linux;
|
||||
maintainers = with maintainers; [ panicgh ];
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue