Drop into a nix shell with ghcHEAD

2019-01-16 Thread Matthew Pickering
Hi all, I have written a devastating new script which makes it easy to test snippets and packages with build artefacts built by the gitlab CI. One invocation of `nix-shell` will enter an environment with the most recent build artefact from master. Usage: ``` > nix-shell https://github.com/mpicke

Re: Drop into a nix shell with ghcHEAD

2019-01-16 Thread chessai .
Beautiful. Thanks for sharing On Wed, Jan 16, 2019 at 9:34 AM Matthew Pickering < matthewtpicker...@gmail.com> wrote: > Hi all, > > I have written a devastating new script which makes it easy to test > snippets and packages with build artefacts built by the gitlab CI. One > invocation of `nix-she

Re: Drop into a nix shell with ghcHEAD

2019-01-22 Thread Matthew Pickering
I just extended it slightly so you can grab artifacts from MRs as well. The interface is not perfect but should still be useful. https://github.com/mpickering/ghc-artefact-nix You can specify the two options `fork` and `branch` in order to download an artefact for a contributors branch in order t

Re: Drop into a nix shell with ghcHEAD

2019-01-22 Thread Matthew Pickering
I have now added a small wrapper script which allows you to pull artefacts by MR number. https://github.com/mpickering/ghc-artefact-nix#ghc-head-from-script ``` # Fetches MR 180 ghc-head-from 180 ``` ``` #Fetches ghc/master ghc-head-from ``` The most convenient way to access the script is to ad