-
Notifications
You must be signed in to change notification settings - Fork 88
Nixify HaLVM #86
Comments
Cool. How well NixOS supports Xen? |
@izgzhen It's supported afaict, https://github.com/NixOS/nixos/blob/master/modules/virtualisation/xen-dom0.nix But this addition to The nix package manager can run on any OS (best support for linux / darwin). So users should be able to write haskell code on any OS that ghc runs on and cross-compile to On the Getting $ curl https://nixos.org/nix/install | sh
# copy . /home/<user>/.nix-profile/etc/profile.d/nix.sh into your .bashrc
$ nix-shell -p "haskell.packages.ghcjs (pkgs: with pkgs; [ ghcjs-base, aeson ])"
# pulls prebuilt ghcjs from the hydra cache into your /nix/store and symlinks it into the shell below
[nix-shell:~]$ ghcsi --info
# ... etc Lastly, it seems there is experimental support for generic ghc cross compilers: |
I'm on board. Anything you need on the HaLVM side? |
@dmjio I'm quite interested in helping with this; in fact my motivation for https://github.com/NixOS/nixpkgs/pull/13131/files was in part hoping someone open just this issue! |
|
@acw 馃憢 :)
The nix package manager allows someome to drop into an arbitrary shell w/ prebuilt haskell deps. (optionally profiled) w/ a GHC. It would be nice to add
halvm-ghc
to this list.So we could just do:
$ nix-shell -p "haskell.packages.ghcHaLVM (pkgs: with pkgs; [ BoundedChan ])"
Modifying this code would be a good starting point.
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/ghc/head.nix
I'd like to start working on this, for ease of dev. w/ HaLVM.
The text was updated successfully, but these errors were encountered: