Name: stack-docker-nix
Owner: Tweag I/O
Description: Provision Haskell Stack Docker images using Nix
Created: 2016-11-27 17:07:00.0
Updated: 2018-04-02 00:11:59.0
Pushed: 2017-11-15 11:33:03.0
Size: 10
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a Docker image suitable for use with Stack. It uses
a shell.nix
file for specifying what software packages to provision,
so that stack --nix
(see here) and stack --docker
(see here) use the same specification.
To use this as a base image, add the following to your Dockerfile
:
tweag/stack-docker-nix
shell.nix /
ean up non-essential downloaded archives after provisioning a shell.
nix-shell /shell.nix --indirect --add-root /nix-shell-gc-root \
&& nix-collect-garbage
IN_NIX_SHELL=1 nix-instantiate \
--add-root /shell.drv --indirect /shell.nix \
&& nix-collect-garbage
New versions of this image are pushed to DockerHub
every time the master
branch is updated.
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
See the CC0 public domain dedication for more information.