From e3cdda3f3fdd79da76b6047928dd62fa1d135e38 Mon Sep 17 00:00:00 2001 From: coolcuber Date: Wed, 29 Apr 2026 15:35:07 -0400 Subject: [PATCH] mathicgb: init at 1.3 --- pkgs/by-name/ma/mathicgb/package.nix | 62 ++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 pkgs/by-name/ma/mathicgb/package.nix diff --git a/pkgs/by-name/ma/mathicgb/package.nix b/pkgs/by-name/ma/mathicgb/package.nix new file mode 100644 index 000000000000..984476a6e007 --- /dev/null +++ b/pkgs/by-name/ma/mathicgb/package.nix @@ -0,0 +1,62 @@ +{ + fetchFromGitHub, + lib, + stdenv, + + autoreconfHook, + gtest, + mathic, + memtailor, + onetbb, + pkg-config, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "mathicgb"; + version = "1.3"; + + src = fetchFromGitHub { + owner = "Macaulay2"; + repo = "mathicgb"; + tag = "v${finalAttrs.version}"; + hash = "sha256-zcHaYzznvbBkfeFXNxIxy9qlyD0esOvwUIOuEli4rwc="; + }; + + buildInputs = [ + mathic + memtailor + onetbb + ]; + + nativeBuildInputs = [ + autoreconfHook + pkg-config # clears up bad behavior of autoconf + ]; + + checkInputs = [ + gtest + ]; + + __structuredAttrs = true; + + strictDeps = true; + + configureFlags = [ + (lib.withFeature finalAttrs.doCheck "gtest") + ]; + + enableParallelBuilding = true; + + doCheck = true; + + meta = { + mainProgram = "mgb"; + description = "Program for computing Groebner basis and signature Grobner bases"; + longDescription = '' + Mathicgb is a program for computing Groebner basis and signature Grobner + bases. Mathicgb is based on the fast data structures from mathic. + ''; + homepage = "https://github.com/Macaulay2/mathicgb"; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ coolcuber ]; + }; +})