Open domenkozar opened 1 year ago
Would be helpful to have this to run on GitLab-CI.
@mweinelt
For now I'm using flake.nix
within the GitLab runner like this:
stages:
- build
image: nixos/nix:latest
build-cli:
stage: build
script:
- nix develop --experimental-features 'nix-command flakes' --impure --command bash "run-hooks"
- nix develop --experimental-features 'nix-command flakes' --impure --command bash "build"
tags:
- docker
I've used this image:
FROM nixos/nix
# Install Cachix, devenv and remove unnecessary data
RUN nix-env -iA cachix -f https://cachix.org/api/v1/install \
&& cachix use devenv \
&& nix-env -if https://install.devenv.sh/latest \
&& nix-collect-garbage --delete-old \
&& nix-store --optimise
docker pull nixpkgs/devenv
I'm going to add docs to close this.