This commit is contained in:
Pierre Roux
2025-01-23 11:32:03 +01:00
committed by Vincent Laporte
parent ab95b1b2e9
commit 04133be9c7
@@ -67,7 +67,7 @@ let
mathcomp_ = package: let
mathcomp-deps = lib.optionals (package != "single") (map mathcomp_ (lib.head (lib.splitList (lib.pred.equal package) packages)));
pkgpath = if package == "single" then "mathcomp" else "mathcomp/${package}";
pkgpath = if package == "single" then "." else package;
pname = if package == "single" then "mathcomp" else "mathcomp-${package}";
pkgallMake = ''
echo "all.v" > Make
@@ -92,6 +92,8 @@ let
then patchShebangs etc/buildlibgraph
fi
'' + ''
# handle mathcomp < 2.4.0 which had an extra base mathcomp directory
test -d mathcomp && cd mathcomp
cd ${pkgpath}
'' + lib.optionalString (package == "all") pkgallMake;