mirror of
https://github.com/haskell-nix/hnix.git
synced 2024-09-11 06:55:38 +03:00
15 lines
344 B
Docker
15 lines
344 B
Docker
FROM lnl7/nix:2.0
|
|
|
|
WORKDIR /tmp/build
|
|
|
|
COPY default.nix /tmp/build
|
|
COPY package.yaml /tmp/build
|
|
|
|
# Install tools needed by builtins.fetchTarball, and then install all
|
|
# dependencies into its own layer, which doesn't change.
|
|
RUN nix-env -f '<nixpkgs>' -i gnutar gzip && \
|
|
nix-shell -Q -j2 --run true
|
|
|
|
COPY . /tmp/build
|
|
RUN bash -xe build.sh
|