
Hi, I would like to have an integer-simple GHC for Mac and Linux. As there is no official download for that I should probably build it myself. My CI server is running Linux containers though. When https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling says "build must equal host", does that mean I cannot produce a mac ghc with Linux ci server? How do others produce ghc for mac or Windows? Best Jan

One (simple?) solution is to use the Nix package manager. Integer-simple GHCs were recently added (available on both Darwin and Linux afaik). After downloading the nix package manager, simply run: *nix-shell -p haskell.compiler.integer-simple.ghc802* The above command will put you into a shell with an integer-simple GHC-8.0.2 For more info on nix and haskell, this is a good guide: https://github.com/Gabriel439/haskell-nix Along with what is mentioned in the nixpkgs manual. http://nixos.org/nixpkgs/manual/#users-guide-to-the-haskell-infrastructure - David On Mon, Apr 17, 2017 at 7:56 AM, Jan von Löwenstein < jan.loewenstein@gmail.com> wrote:
Hi,
I would like to have an integer-simple GHC for Mac and Linux. As there is no official download for that I should probably build it myself.
My CI server is running Linux containers though.
When https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling says "build must equal host", does that mean I cannot produce a mac ghc with Linux ci server? How do others produce ghc for mac or Windows?
Best Jan
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
-- Cell: 1.630.740.8204

I will definitely look at nix and cabal new-build. My current setup works
but makes me ship insanely oversized tarballs...
The project is a bosh-release (https://bosh.io), more precisely a cloud
provider interface for Kubernetes (
https://github.com/sap/bosh-kubernetes-cpi-release). In order to have
offline compilation with stack I currently have to package GHC thrice
(darwin, linux and old-linux (centos)) plus half of stackage for my
dependencies.
Offline compilation is probably what will not make `nix-shell -p
haskell.compiler.integer-simple.ghc802`
particularly simple. Or will it still?
Best
Jan
David Johnson
One (simple?) solution is to use the Nix package manager. Integer-simple GHCs were recently added (available on both Darwin and Linux afaik). After downloading the nix package manager, simply run:
*nix-shell -p haskell.compiler.integer-simple.ghc802*
The above command will put you into a shell with an integer-simple GHC-8.0.2
For more info on nix and haskell, this is a good guide: https://github.com/Gabriel439/haskell-nix
Along with what is mentioned in the nixpkgs manual. http://nixos.org/nixpkgs/manual/#users-guide-to-the-haskell-infrastructure
- David
On Mon, Apr 17, 2017 at 7:56 AM, Jan von Löwenstein < jan.loewenstein@gmail.com> wrote:
Hi,
I would like to have an integer-simple GHC for Mac and Linux. As there is no official download for that I should probably build it myself.
My CI server is running Linux containers though.
When https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling says "build must equal host", does that mean I cannot produce a mac ghc with Linux ci server? How do others produce ghc for mac or Windows?
Best Jan
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
-- Cell: 1.630.740.8204 <(630)%20740-8204>
participants (2)
-
David Johnson
-
Jan von Löwenstein