about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorMatthew Maurer <matthew.r.maurer@gmail.com>2016-09-14 12:00:45 -0400
committerMatthew Maurer <matthew.r.maurer@gmail.com>2016-09-14 12:00:45 -0400
commit284c2d8ef55c07c7f87910d0ec1bb2b2bc00fa87 (patch)
treeaabdfe24002525e9bc278c890e5cce0b24cdccb6 /pkgs/development/ocaml-modules
parent4fcc1a5a975464dcca0fa1c4c6ce0020df79fe47 (diff)
buildOcamlJane: Add line breaks
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix b/pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix
index 33397e35aa6d1..61b2038bfd295 100644
--- a/pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix
+++ b/pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix
@@ -24,7 +24,12 @@ buildOcaml (args // {
 
   installPhase = ''
     opam-installer -i --prefix $prefix --libdir `ocamlfind printconf destdir` --stubsdir `ocamlfind printconf destdir`/${name} ${name}.install
-    if [ -d $out/lib/${name} ]; then if [ "$(ls -A $out/lib/${name})" ]; then mv $out/lib/${name}/* `ocamlfind printconf destdir`/${name}; fi; rmdir $out/lib/${name}; fi
+    if [ -d $out/lib/${name} ]
+      then if [ "$(ls -A $out/lib/${name})" ]
+        then mv $out/lib/${name}/* `ocamlfind printconf destdir`/${name}
+      fi
+      rmdir $out/lib/${name}
+    fi
   '';
 
 })