summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/oasis
diff options
context:
space:
mode:
authorUlrik Strid <ulrik.strid@outlook.com>2022-02-22 10:59:04 +0100
committerUlrik Strid <ulrik.strid@outlook.com>2022-02-24 14:39:27 +0100
commita13cdfe520d87db401dd000fbd67cad728162a60 (patch)
tree85c0d28a4d9ae9e447f2bbf026decdb0ff35d946 /pkgs/development/tools/ocaml/oasis
parent24102db995db84d1caa4cf24371b153c2023aeee (diff)
downloadnixpkgs-a13cdfe520d87db401dd000fbd67cad728162a60.tar
nixpkgs-a13cdfe520d87db401dd000fbd67cad728162a60.tar.gz
nixpkgs-a13cdfe520d87db401dd000fbd67cad728162a60.tar.bz2
nixpkgs-a13cdfe520d87db401dd000fbd67cad728162a60.tar.lz
nixpkgs-a13cdfe520d87db401dd000fbd67cad728162a60.tar.xz
nixpkgs-a13cdfe520d87db401dd000fbd67cad728162a60.tar.zst
nixpkgs-a13cdfe520d87db401dd000fbd67cad728162a60.zip
ocamlPackages tree-wide: Move buildInputs that should be nativeBuildInputs
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild.
This makes some closures significantly smaller and makes cross compilation easier
Diffstat (limited to 'pkgs/development/tools/ocaml/oasis')
-rw-r--r--pkgs/development/tools/ocaml/oasis/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/tools/ocaml/oasis/default.nix b/pkgs/development/tools/ocaml/oasis/default.nix
index 10c7bf63aa4..d35ddbe210b 100644
--- a/pkgs/development/tools/ocaml/oasis/default.nix
+++ b/pkgs/development/tools/ocaml/oasis/default.nix
@@ -13,11 +13,15 @@ stdenv.mkDerivation {
 
   createFindlibDestdir = true;
 
-  buildInputs =
+  strictDeps = true;
+
+  nativeBuildInputs =
     [
       ocaml findlib ocamlbuild ocamlmod ocamlify
     ];
 
+  buildInputs = [ ocamlbuild ];
+
   configurePhase = ''
     runHook preConfigure
     ocaml setup.ml -configure --prefix $out