diff options
author | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2019-10-31 17:16:15 +0700 |
---|---|---|
committer | Alexander Bantyev <balsoft75@gmail.com> | 2019-11-11 11:10:14 +0300 |
commit | 4550405ac974878bf2cfa7bb4137d414b5cec2f3 (patch) | |
tree | 7d78788d023a4009454026c705202fabfe0dd370 /pkgs/development/ocaml-modules/yojson | |
parent | 173bf3473cceef1f56b116f8ad43fb1262d8d4b6 (diff) |
ocaml-modules: replace buildInputs with nativeBuildInputs where appropriate
The default has been to use buildInputs for build dependencies. This doesn't work when cross-compiling.
Diffstat (limited to 'pkgs/development/ocaml-modules/yojson')
-rw-r--r-- | pkgs/development/ocaml-modules/yojson/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/yojson/default.nix b/pkgs/development/ocaml-modules/yojson/default.nix index c660ca6485665..3307b665b6147 100644 --- a/pkgs/development/ocaml-modules/yojson/default.nix +++ b/pkgs/development/ocaml-modules/yojson/default.nix @@ -6,7 +6,7 @@ let version = "1.7.0"; url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz"; sha256 = "08llz96if8bcgnaishf18si76cv11zbkni0aldb54k3cn7ipiqvd"; - buildInputs = [ dune ]; + nativeBuildInputs = [ dune ]; extra = { inherit (dune) installPhase; }; } else rec { version = "1.2.3"; @@ -29,9 +29,10 @@ stdenv.mkDerivation ({ inherit (param) url sha256; }; - buildInputs = [ ocaml findlib ] ++ (param.buildInputs or []); - - propagatedBuildInputs = [ cppo easy-format biniou ]; + nativeBuildInputs = [ ocaml findlib ] ++ (param.nativeBuildInputs or []); + propagatedNativeBuildInputs = [ cppo ]; + propagatedBuildInputs = [ easy-format biniou ]; + configurePlatforms = []; meta = with stdenv.lib; { description = "An optimized parsing and printing library for the JSON format"; |