diff options
author | Matthew Maurer <matthew.r.maurer@gmail.com> | 2016-09-14 12:00:45 -0400 |
---|---|---|
committer | Matthew Maurer <matthew.r.maurer@gmail.com> | 2016-09-14 12:00:45 -0400 |
commit | 284c2d8ef55c07c7f87910d0ec1bb2b2bc00fa87 (patch) | |
tree | aabdfe24002525e9bc278c890e5cce0b24cdccb6 /pkgs/development/ocaml-modules | |
parent | 4fcc1a5a975464dcca0fa1c4c6ce0020df79fe47 (diff) | |
download | nixlib-284c2d8ef55c07c7f87910d0ec1bb2b2bc00fa87.tar nixlib-284c2d8ef55c07c7f87910d0ec1bb2b2bc00fa87.tar.gz nixlib-284c2d8ef55c07c7f87910d0ec1bb2b2bc00fa87.tar.bz2 nixlib-284c2d8ef55c07c7f87910d0ec1bb2b2bc00fa87.tar.lz nixlib-284c2d8ef55c07c7f87910d0ec1bb2b2bc00fa87.tar.xz nixlib-284c2d8ef55c07c7f87910d0ec1bb2b2bc00fa87.tar.zst nixlib-284c2d8ef55c07c7f87910d0ec1bb2b2bc00fa87.zip |
buildOcamlJane: Add line breaks
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix | 7 |
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 33397e35aa6d..61b2038bfd29 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 ''; }) |