diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-14 08:18:14 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-14 10:22:35 +0100 |
commit | 0a0b46a9b08fdfe7e3aa41809391fdfcd589c623 (patch) | |
tree | e43c50c53e9892071e6fe5596af4df920e3c1140 /pkgs | |
parent | 0f31f8a9f3cc0d76b5b5166657fca570834333af (diff) | |
download | nixlib-0a0b46a9b08fdfe7e3aa41809391fdfcd589c623.tar nixlib-0a0b46a9b08fdfe7e3aa41809391fdfcd589c623.tar.gz nixlib-0a0b46a9b08fdfe7e3aa41809391fdfcd589c623.tar.bz2 nixlib-0a0b46a9b08fdfe7e3aa41809391fdfcd589c623.tar.lz nixlib-0a0b46a9b08fdfe7e3aa41809391fdfcd589c623.tar.xz nixlib-0a0b46a9b08fdfe7e3aa41809391fdfcd589c623.tar.zst nixlib-0a0b46a9b08fdfe7e3aa41809391fdfcd589c623.zip |
ocp-indent: fix installation
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/ocaml/ocp-indent/default.nix | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/pkgs/development/tools/ocaml/ocp-indent/default.nix b/pkgs/development/tools/ocaml/ocp-indent/default.nix index d50e003f8474..9ad2976adbfc 100644 --- a/pkgs/development/tools/ocaml/ocp-indent/default.nix +++ b/pkgs/development/tools/ocaml/ocp-indent/default.nix @@ -18,17 +18,8 @@ stdenv.mkDerivation { createFindlibDestdir = true; - # The supplied installer uses opam-installer which breaks when run - # normally since it tries to `mkdir $HOME`. However, we can use - # `opam-installer --script` to get the shell script that performs only - # the installation and just run that. Furthermore, we do the same that is - # done by pkgs/development/ocaml-modules/react and rename the paths meant - # for opam-installer so that they are in line with the other OCaml - # libraries in Nixpkgs. - installPhase = '' - opam-installer --script --prefix=$out ocp-indent.install \ - | sed s!lib/ocp-indent!lib/ocaml/${getVersion ocaml}/site-lib/ocp-indent! \ - | sh + postInstall = '' + mv $out/lib/{ocp-indent,ocaml/${getVersion ocaml}/site-lib/} ''; meta = with stdenv.lib; { |