Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 flex, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "wcslib"; 10 version = "8.4"; 11 12 src = fetchurl { 13 url = "ftp://ftp.atnf.csiro.au/pub/software/wcslib/${pname}-${version}.tar.bz2"; 14 hash = "sha256-lguERCbRSotTze7XgliqkojN7ZmncywGZ8ZPpqUBJtw="; 15 }; 16 17 nativeBuildInputs = [ flex ]; 18 19 enableParallelBuilding = true; 20 21 outputs = [ 22 "out" 23 "man" 24 ]; 25 26 # DOCDIR is set to the path $out/share/doc/wcslib, and DOCLINK points 27 # to the same location. 28 # `$(LN_S) $(notdir $(DOCDIR)) $(DOCLINK)` effectively running: 29 # `ln -s wcslib $out/share/doc/wcslib` 30 # This produces a broken link because the target location already exists 31 postInstall = '' 32 rm $out/share/doc/wcslib/wcslib 33 ''; 34 35 meta = { 36 homepage = "https://www.atnf.csiro.au/people/mcalabre/WCS/"; 37 description = "World Coordinate System library for astronomy"; 38 longDescription = '' 39 Library for world coordinate systems for spherical geometries 40 and their conversion to image coordinate systems. This is the 41 standard library for this purpose in astronomy. 42 ''; 43 maintainers = with lib.maintainers; [ hjones2199 ]; 44 license = lib.licenses.lgpl3Plus; 45 platforms = lib.platforms.unix; 46 }; 47}