why3: move the OCaml library to its own dev output

This commit is contained in:
Vincent Laporte 2024-01-23 06:46:47 +01:00 committed by Vincent Laporte
parent b4c953947f
commit d0cdb657c2
3 changed files with 10 additions and 2 deletions

View File

@ -22,11 +22,12 @@ stdenv.mkDerivation rec {
batteries
dune-build-info
inifiles
why3
yojson
zarith
];
propagatedBuildInputs = [ why3 ];
propagatedBuildInputs = [ why3.out ];
strictDeps = true;

View File

@ -55,8 +55,15 @@ stdenv.mkDerivation rec {
(lib.enableFeature ideSupport "ide")
];
outputs = [ "out" "dev" ];
installTargets = [ "install" "install-lib" ];
postInstall = ''
mkdir -p $dev/lib
mv $out/lib/ocaml $dev/lib/
'';
passthru.withProvers = callPackage ./with-provers.nix {};
meta = with lib; {

View File

@ -20,7 +20,7 @@ let
ppx_deriving_yojson
ppx_import
stdlib-shims
why3
why3.dev
re
result
seq