From ff1bb8b978b006178a233470cc9d9729dddcea1f Mon Sep 17 00:00:00 2001 From: coolcuber Date: Mon, 28 Sep 2026 11:11:39 -0400 Subject: [PATCH] macaulay2: remove submodules and editor files --- pkgs/by-name/ma/macaulay2/package.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ma/macaulay2/package.nix b/pkgs/by-name/ma/macaulay2/package.nix index 6bf21b6077a5..425886aaf2cf 100644 --- a/pkgs/by-name/ma/macaulay2/package.nix +++ b/pkgs/by-name/ma/macaulay2/package.nix @@ -17,7 +17,6 @@ cohomcalg, csdp, eigen, - emacs-nox, fflas-ffpack, flex, flint, @@ -70,8 +69,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "Macaulay2"; repo = "M2"; tag = "release-${finalAttrs.version}"; - hash = "sha256-2e39qzBO63Ft+yw+tJChLsupeinalTkDwXp3WBF2wms="; - fetchSubmodules = true; + hash = "sha256-kYxqbMKW+7r6nI4i3o7vvJVf0TGRVLaDviZTFx3PTBI="; }; docs = fetchurl { @@ -122,7 +120,6 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ autoreconfHook bison - emacs-nox flex flint gdbm @@ -154,6 +151,10 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' sed -i 's/AC_SUBST(REL,.*uname -r.*)/AC_SUBST(REL,"")/' configure.ac + # remove editor stuff from Makefiles + substituteInPlace Macaulay2/Makefile.in \ + --replace-fail "all-in-editors" "" \ + --replace-fail "editors" "" ''; preConfigure = ''