Commit Graph

11 Commits

Author SHA1 Message Date
Julian Ospald
1fb7d122d1 Expose ghcup binary to PATH on windows (#4264)
* Expose ghcup binary to PATH on windows

The bootstrap-haskell.ps1 script uses
'[System.EnvironmentVariableTarget]::User' instead of
'[System.EnvironmentVariableTarget]::Machine', so it appears
ghcup env vars and PATH update never make it. Do these manually
for now.

* Set CABAL_DIR and make sure config is adjusted

The config adjustment usually includes adding msys2 directories,
so cabal can find `pkg-config` and libraries, e.g.:

+ C: \ghcup\msys64\mingw64\bin
+ extra-include-dirs: C:\ghcup\msys64\mingw64\include
+ extra-lib-dirs: C:\ghcup\msys64\mingw64\lib
- extra-prog-path: C:\cabal\bin
+ extra-prog-path: C:\ghcup\bin,

* Expose cabal dir to PATH as well

* Use Set-SystemVariable

* Fix tests

* Use hardcoded cabal dir

* Fix bootstrap-haskell

* Move test after installation

* Print ghcup installation message

* Don't adjust cabal.config (to include mingw paths)

This may break setups.
2021-12-10 11:23:44 +03:00
Julian Ospald
a9ac553edd Install ghcup on windows (#4044) 2021-09-10 16:16:54 +03:00
Mikhail Timofeev
f7e0e8befb [Windows] Switch to use OData query instead of choco search for ghc installation (#3458)
* Switch to use OData query instead of choco search

* Simplify the logic
2021-05-27 10:20:41 +03:00
Mikhail Timofeev
0bac9037ca Sort by version in advance (#3411) 2021-05-19 19:45:09 +03:00
AHuusom
cc0c9ba63b [windows] Fixed version checking (#3219) 2021-04-27 11:37:12 +03:00
Mikhail Timofeev
8cdcef0d00 Initialize ChocolateyToolsLocation variable and fix tests (#2874) 2021-03-08 22:43:58 +03:00
Mikhail Timofeev
57a08bac71 add correct path to install haskell 2020-10-18 20:52:32 +03:00
Mikhail Timofeev
d22190a9d9 add condition to install approved only versions 2020-10-11 01:16:08 +03:00
Aleksandr Chebotov
f1352d64d5 Migration to Pester tests 2020-07-13 12:10:54 +03:00
Dibir Magomedsaygitov
1877f7df5e Fix Stack's installation path (#896)
* fix path

* fix naming

* add ghc to path
2020-05-22 20:22:13 +03:00
Dibir Magomedsaygitov
5160bfa626 Install Stack, GHC and Cabal to Windows Images (#874)
* install stack
* implement logic that gets 3 latest versions of ghc
2020-05-15 15:01:45 +03:00