nixpkgs/pkgs/development/libraries/gf2x/default.nix

34 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchurl
, optimize ? false # impure hardware optimizations
}:
2016-10-10 15:21:23 +01:00
stdenv.mkDerivation rec {
name = "gf2x-${version}";
version = "1.2"; # remember to also update the url
2016-10-10 15:21:23 +01:00
src = fetchurl {
2018-07-08 21:52:33 +01:00
# find link to latest version (with file id) here: https://gforge.inria.fr/projects/gf2x/
# Requested a predictable link:
# https://gforge.inria.fr/tracker/index.php?func=detail&aid=21704&group_id=1874&atid=6982
url = "https://gforge.inria.fr/frs/download.php/file/36934/gf2x-${version}.tar.gz";
2018-07-08 21:52:33 +01:00
sha256 = "0d6vh1mxskvv3bxl6byp7gxxw3zzpkldrxnyajhnl05m0gx7yhk1";
2016-10-10 15:21:23 +01:00
};
# no actual checks present yet (as of 1.2), but can't hurt trying
# for an indirect test, run ntl's test suite
doCheck = true;
configureFlags = lib.optionals (!optimize) [
"--disable-hardware-specific-code"
];
meta = with lib; {
2016-10-10 15:21:23 +01:00
description = ''Routines for fast arithmetic in GF(2)[x]'';
2018-07-08 21:52:33 +01:00
homepage = http://gf2x.gforge.inria.fr;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin timokau ];
2018-08-13 22:36:18 +01:00
platforms = platforms.unix;
2016-10-10 15:21:23 +01:00
};
}