fdopen / opam-repository-mingw

windows package repository for OPAM (mingw and msvc)
https://fdopen.github.io/opam-repository-mingw/
Creative Commons Zero v1.0 Universal
96 stars 34 forks source link

opam mingw repository

An opam repository for windows - including an experimental build of opam for windows (of course, you still need cygwin for nearly everything: a shell interpreter to run configure scripts, git, rsync, ...)

Discontinuation

This repo will soon be discontinued.

Homepage

There is now a small homepage with installation instructions and usage information: https://fdopen.github.io/opam-repository-mingw/ - and a graphical installer that automates the steps listed below.

Esy

Esy also supports Windows. If you are not already familar with opam from Linux / OS X and don't want to change your habits, give it a try first.

Summary

Download

The archives contain native versions of opam, flexdll and aspcud. They are all not linked against cygwin1.dll, so you can use them with either the 32-bit or 64-bit version of cygwin.

Installation

$ tar -xf 'opam32.tar.xz' # or tar -xf 'opam64.tar.xz'
$ bash opam32/install.sh  # --prefix /usr/foo, the default prefix is /usr/local
                          # maybe you have to add /usr/local/bin to your PATH
$ opam init default "https://github.com/fdopen/opam-repository-mingw.git#opam2" -c "ocaml-variants.4.07.1+mingw32" --disable-sandboxing
# or, if you prefer the 64-bit version - 'opam switch -a' will list other supported versions
$ opam init default "https://github.com/fdopen/opam-repository-mingw.git#opam2" -c "ocaml-variants.4.07.1+mingw64" --disable-sandboxing
$ eval $(ocaml-env cygwin)

Things to remember