quchen / Stackage Everything
Programming Languages
Stackage-Everything generator
tl;dr: »I want Stackage on an airplane and I have only 3 minutes until takeoff«
This small script generates a script to download all the sources of a Stackage LTS release, so they can later be built/installed (including documentation) even when no internet connection is available.
A full download takes only a couple of minutes and around 60 megabytes of traffic at the time of writing this.
So if you’ve got a long flight ahead of you, or a weekend with your Granny in Siberia, or a dive into the Mariana Trench, or even worse – a trip through the German countryside by train – this is for you.
Usage
./Generate.hs --lts 10.6 > everything # Generate install script
chmod u+x everything # Make it runnable
./everything # Run it
Afterwards, you’ll be able to compile packages via the usual means (stack build
or as dependencies) without internet access, because Stack first searches
the local folders for source files before attempting to download them.