Files
nixpkgs/pkgs/by-name/gf/gf2x/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitLab,
fetchpatch,
autoreconfHook,
buildPackages,
optimize ? false, # impure hardware optimizations
}:
stdenv.mkDerivation rec {
pname = "gf2x";
version = "1.3.0";
src = fetchFromGitLab {
domain = "gitlab.inria.fr";
owner = "gf2x";
repo = "gf2x";
rev = "gf2x-${version}";
sha256 = "04g5jg0i4vz46b4w2dvbmahwzi3k6b8g515mfw7im1inc78s14id";
};
patches = [
(fetchpatch {
name = "gf2x-1.3.0-configure-clang16.patch";
url = "https://gitlab.inria.fr/gf2x/gf2x/-/commit/a2f0fd388c12ca0b9f4525c6cfbc515418dcbaf8.diff";
hash = "sha256-Aj2KzWZMR24S04IbPOBPwacCU4rEiB+FFWxtRuF50LA=";
})
];
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [
autoreconfHook
];
# 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; {
description = "Routines for fast arithmetic in GF(2)[x]";
homepage = "https://gitlab.inria.fr/gf2x/gf2x/";
license = licenses.gpl2Plus;
teams = [ teams.sage ];
platforms = platforms.unix;
};
}