nixpkgs/pkgs/development/ocaml-modules/ounit/default.nix
Ulrik Strid a13cdfe520 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
2022-02-24 14:39:27 +01:00

19 lines
354 B
Nix

{ stdenv, ocaml, findlib, ounit2 }:
stdenv.mkDerivation {
pname = "ocaml${ocaml.version}-ounit";
inherit (ounit2) version src meta;
nativeBuildInputs = [ findlib ];
propagatedBuildInputs = [ ounit2 ];
strictDeps = true;
dontBuild = true;
createFindlibDestdir = true;
installTargets = "install-ounit version='${ounit2.version}'";
}