3
0
Fork 0
forked from mirrors/nixpkgs

mkCoqDerivation: findlib is an optional input

This commit is contained in:
Vincent Laporte 2023-02-01 20:43:16 +01:00 committed by Vincent Laporte
parent 0cad0fd119
commit db0dc68975

View file

@ -84,9 +84,9 @@ stdenv.mkDerivation (removeAttrs ({
inherit (fetched) version src;
nativeBuildInputs = args.overrideNativeBuildInputs
or ([ which coq.ocamlPackages.findlib ]
or ([ which ]
++ optional useDune coq.ocamlPackages.dune_3
++ optional (useDune || mlPlugin) coq.ocamlPackages.ocaml
++ optionals (useDune || mlPlugin) [ coq.ocamlPackages.ocaml coq.ocamlPackages.findlib ]
++ (args.nativeBuildInputs or []) ++ extraNativeBuildInputs);
buildInputs = args.overrideBuildInputs
or ([ coq ] ++ (args.buildInputs or []) ++ extraBuildInputs);