ocamlPackages.apron: split into multiple outputs
This commit is contained in:
parent
8b5088130e
commit
63aa105b1c
1 changed files with 15 additions and 2 deletions
|
@ -13,8 +13,21 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = [ perl gmp mpfr ppl ocaml findlib camlidl ];
|
||||
propagatedBuildInputs = [ mlgmpidl ];
|
||||
|
||||
prefixKey = "-prefix ";
|
||||
preBuild = "mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs";
|
||||
outputs = [ "out" "bin" "dev" ];
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
./configure -prefix $out
|
||||
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $dev/lib
|
||||
mv $out/lib/ocaml $dev/lib/
|
||||
mkdir -p $bin
|
||||
mv $out/bin $bin/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
license = stdenv.lib.licenses.lgpl21;
|
||||
|
|
Loading…
Reference in a new issue