about summary refs log tree commit diff
path: root/pkgs/by-name/fi/fitsverify
diff options
context:
space:
mode:
authorNicolas Benes <nbenes.gh@xandea.de>2024-01-04 16:03:29 +0100
committerNicolas Benes <nbenes.gh@xandea.de>2024-01-04 16:13:43 +0100
commit87a298deee7eed5a859ebff64df0c8da6c0075ab (patch)
tree2ad872fd810109cec092b94e6701831b99d4e588 /pkgs/by-name/fi/fitsverify
parent184703cfaae96f2b6b319154ac8ccd3cfbd48c58 (diff)
fitsverify: init at 4.22
Diffstat (limited to 'pkgs/by-name/fi/fitsverify')
-rw-r--r--pkgs/by-name/fi/fitsverify/package.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/by-name/fi/fitsverify/package.nix b/pkgs/by-name/fi/fitsverify/package.nix
new file mode 100644
index 0000000000000..35184352819a8
--- /dev/null
+++ b/pkgs/by-name/fi/fitsverify/package.nix
@@ -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 ];
+  };
+})