Skip to content

Support running in existing MSYS2 installation #377

Closed
@conklech

Description

@conklech

The great virtue of MSYS2 on Windows is that we now have access to a real package manager for C dependencies. Binary packages are available for recent versions of GTK, webkit, and many other useful packages that have historically been difficult or impossible to install on Windows.

It would be great if building a package that uses gtk from a clean Windows system were as simple as:

  1. Install stack
  2. Install MSYS2; open mingw shell
  3. $ pacman -S mingw-w64-x86_64-gtk3 pkg-config
  4. $ stack build

Right now this doesn't work; the gtk2hs builders complain that the pkg-config packages glib, cairo, etc. aren't available. Is this because Stack redirects paths to its built-in git+MSYS2 installation?

(I'd be glad to provide logs, more information, etc.; I don't know how much of this is a known limitation and I don't want to dump details unnecessarily.)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions