aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/apron
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-11-04 07:35:52 +0100
committerehmry <ehmry@posteo.net>2020-11-06 10:06:11 +0100
commit63aa105b1c1759029e229ea5d1fda08950956216 (patch)
tree597794bd312551229da7aa01bbb0ad4841ed1f2e /pkgs/development/ocaml-modules/apron
parent8b5088130ea9d09d3350d001161b5884193bef81 (diff)
ocamlPackages.apron: split into multiple outputs
Diffstat (limited to 'pkgs/development/ocaml-modules/apron')
-rw-r--r--pkgs/development/ocaml-modules/apron/default.nix17
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/apron/default.nix b/pkgs/development/ocaml-modules/apron/default.nix
index 0da1ab74e199..79c4d8a50024 100644
--- a/pkgs/development/ocaml-modules/apron/default.nix
+++ b/pkgs/development/ocaml-modules/apron/default.nix
@@ -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;