Stackage snapshots for your Nix.
This project is part of serokell-stackage
. Please, see the readme there for details.
Each stackage snapshot is converted into a nixpkgs
overlay and then compressed individually so that you
can fetch just the archive for the snapshot which you will be using saving bandwidth and time.
The output of the nix expression contains the following:
default.nix.tar.gz
–default.nix
in an archive suitable forfetchTarball
default.nix.tar.gz.sha256
– hash ofdefault.nix.tar.gz
(for fetching withfetchTarball
)sources.json
– hashes of archives with individual snapshot overlays used internally bydefault.nix
<snapshot-name>.tar.gz
– archives with actual overlays
default.nix
will fetch the right archive depending on the snapshot that you want. To do this
it needs to know absolute URIs of the archives, therefore it has the baseUrl
parameter and
it additionally appends its own output name to it, so that multiple generations can be hosted
at the same place.
- Either
fetchTarball
the exact snapshot overlay archive that you want (to make sure your derivation will work in a sandbox, grab the hash fromsources.json
) - or
fetchTarball
default.nix.tar.gz
(grab the hash fromdefault.nix.tar.gz.sha256
) and then use the attribute with the name of the stackage snapshot you need – it will fetch the right tarball for you.