Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 33 lines 914 B view raw
1{ fetchurl, stdenv, flex }: 2 3stdenv.mkDerivation rec { 4 version = "6.2"; 5 name = "wcslib-${version}"; 6 7 buildInputs = [ flex ]; 8 9 src = fetchurl { 10 url = "ftp://ftp.atnf.csiro.au/pub/software/wcslib/${name}.tar.bz2"; 11 sha256 ="01fqckazhbfqqhyr0wd9vcks1m2afmsh83l981alxg2r54jgwkdv"; 12 }; 13 14 prePatch = '' 15 substituteInPlace GNUmakefile --replace 2775 0775 16 substituteInPlace C/GNUmakefile --replace 2775 0775 17 ''; 18 19 enableParallelBuilding = true; 20 21 meta = { 22 description = "World Coordinate System Library for Astronomy"; 23 homepage = http://www.atnf.csiro.au/people/mcalabre/WCS/; 24 25 longDescription = ''Library for world coordinate systems for 26 spherical geometries and their conversion to image coordinate 27 systems. This is the standard library for this purpose in 28 astronomy.''; 29 30 license = stdenv.lib.licenses.lgpl3Plus; 31 platforms = stdenv.lib.platforms.unix; 32 }; 33}