at 18.09-beta 33 lines 1.1 kB view raw
1{ stdenv 2, lib 3, fetchurl 4, optimize ? false # impure hardware optimizations 5}: 6stdenv.mkDerivation rec { 7 name = "gf2x-${version}"; 8 version = "1.2"; # remember to also update the url 9 10 src = fetchurl { 11 # find link to latest version (with file id) here: https://gforge.inria.fr/projects/gf2x/ 12 # Requested a predictable link: 13 # https://gforge.inria.fr/tracker/index.php?func=detail&aid=21704&group_id=1874&atid=6982 14 url = "https://gforge.inria.fr/frs/download.php/file/36934/gf2x-${version}.tar.gz"; 15 sha256 = "0d6vh1mxskvv3bxl6byp7gxxw3zzpkldrxnyajhnl05m0gx7yhk1"; 16 }; 17 18 # no actual checks present yet (as of 1.2), but can't hurt trying 19 # for an indirect test, run ntl's test suite 20 doCheck = true; 21 22 configureFlags = lib.optionals (!optimize) [ 23 "--disable-hardware-specific-code" 24 ]; 25 26 meta = with lib; { 27 description = ''Routines for fast arithmetic in GF(2)[x]''; 28 homepage = http://gf2x.gforge.inria.fr; 29 license = licenses.gpl2Plus; 30 maintainers = with maintainers; [ raskin timokau ]; 31 platforms = platforms.unix; 32 }; 33}