ocamlPackages.mkDerivation: use nativeBuildInputs for build tools
This commit is contained in:
parent
061f70f8f7
commit
ddd479fe7c
@ -1,6 +1,6 @@
|
|||||||
{ lib, stdenv, writeText, ocaml, findlib, ocamlbuild, camlp4 }:
|
{ lib, stdenv, writeText, ocaml, findlib, ocamlbuild, camlp4 }:
|
||||||
|
|
||||||
{ name, version, buildInputs ? [],
|
{ name, version, nativeBuildInputs ? [],
|
||||||
createFindlibDestdir ? true,
|
createFindlibDestdir ? true,
|
||||||
dontStrip ? true,
|
dontStrip ? true,
|
||||||
minimumSupportedOcamlVersion ? null,
|
minimumSupportedOcamlVersion ? null,
|
||||||
@ -19,7 +19,7 @@ in
|
|||||||
stdenv.mkDerivation (args // {
|
stdenv.mkDerivation (args // {
|
||||||
name = "ocaml-${name}-${version}";
|
name = "ocaml-${name}-${version}";
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild camlp4 ] ++ buildInputs;
|
nativeBuildInputs = [ ocaml findlib ocamlbuild camlp4 ] ++ nativeBuildInputs;
|
||||||
|
|
||||||
setupHook = if setupHook == null && hasSharedObjects
|
setupHook = if setupHook == null && hasSharedObjects
|
||||||
then writeText "setupHook.sh" ''
|
then writeText "setupHook.sh" ''
|
||||||
|
Loading…
Reference in New Issue
Block a user