coqPackages.mathcomp: adapt to https://github.com/math-comp/math-comp/pull/1329
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user