Files
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

45 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchurl,
fetchpatch,
gmp,
ntl,
cddlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "latte-integrale";
version = "1.7.6";
src = fetchurl {
url = "https://github.com/latte-int/latte/releases/download/version_${
lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version
}/latte-int-${finalAttrs.version}.tar.gz";
hash = "sha256-AGwQ6+XVv9ybFZy6YmSkQyhh/nY84F/oIWJKt9P8IXA=";
};
patches = [
# C++17 compat
(fetchpatch {
url = "https://github.com/latte-int/latte/commit/6dbf7f07d5c9e1f3afe793f782d191d4465088ae.patch";
excludes = [ "code/latte/sqlite/IntegrationDB.h" ];
hash = "sha256-i7c11y54OLuJ0m7PBnhEoAzJzxC842JU7A6TOtTz06k=";
})
];
buildInputs = [
gmp
ntl
cddlib
];
meta = {
description = "Software for counting lattice points and integration over convex polytopes";
homepage = "https://www.math.ucdavis.edu/~latte/";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ amesgen ];
platforms = lib.platforms.unix;
};
})