Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
flex,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wcslib";
|
|
version = "8.4";
|
|
|
|
src = fetchurl {
|
|
url = "ftp://ftp.atnf.csiro.au/pub/software/wcslib/${pname}-${version}.tar.bz2";
|
|
hash = "sha256-lguERCbRSotTze7XgliqkojN7ZmncywGZ8ZPpqUBJtw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flex ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
# DOCDIR is set to the path $out/share/doc/wcslib, and DOCLINK points
|
|
# to the same location.
|
|
# `$(LN_S) $(notdir $(DOCDIR)) $(DOCLINK)` effectively running:
|
|
# `ln -s wcslib $out/share/doc/wcslib`
|
|
# This produces a broken link because the target location already exists
|
|
postInstall = ''
|
|
rm $out/share/doc/wcslib/wcslib
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://www.atnf.csiro.au/people/mcalabre/WCS/";
|
|
description = "World Coordinate System library for astronomy";
|
|
longDescription = ''
|
|
Library for world coordinate systems for spherical geometries
|
|
and their conversion to image coordinate systems. This is the
|
|
standard library for this purpose in astronomy.
|
|
'';
|
|
maintainers = with lib.maintainers; [
|
|
returntoreality
|
|
];
|
|
license = lib.licenses.lgpl3Plus;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|