diff options
author | Ulrik Strid <ulrik.strid@outlook.com> | 2022-02-22 10:59:04 +0100 |
---|---|---|
committer | Ulrik Strid <ulrik.strid@outlook.com> | 2022-02-24 14:39:27 +0100 |
commit | a13cdfe520d87db401dd000fbd67cad728162a60 (patch) | |
tree | 85c0d28a4d9ae9e447f2bbf026decdb0ff35d946 /pkgs/development/ocaml-modules/ppx_deriving | |
parent | 24102db995db84d1caa4cf24371b153c2023aeee (diff) | |
download | nixpkgs-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/ocaml-modules/ppx_deriving')
-rw-r--r-- | pkgs/development/ocaml-modules/ppx_deriving/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/ppx_deriving/default.nix b/pkgs/development/ocaml-modules/ppx_deriving/default.nix index 5563e611346..090c8113ce4 100644 --- a/pkgs/development/ocaml-modules/ppx_deriving/default.nix +++ b/pkgs/development/ocaml-modules/ppx_deriving/default.nix @@ -5,7 +5,7 @@ , ppxlib , ppx_derivers , result -, ounit +, ounit2 , ocaml-migrate-parsetree , ocaml-migrate-parsetree-2 }: @@ -37,7 +37,11 @@ buildDunePackage rec { inherit (params) sha256; }; - buildInputs = [ ppxlib cppo ]; + # This currently fails with dune + strictDeps = false; + + nativeBuildInputs = [ cppo ]; + buildInputs = [ ppxlib ]; propagatedBuildInputs = [ (if params.useOMP2 then ocaml-migrate-parsetree-2 @@ -47,7 +51,7 @@ buildDunePackage rec { ]; doCheck = true; - checkInputs = [ ounit ]; + checkInputs = [ ounit2 ]; meta = with lib; { description = "deriving is a library simplifying type-driven code generation on OCaml >=4.02."; |