4 ms·
Do you have a story for how this works with CI? I have a few projects that use a shell.nix to provide my dev environment, then in CI I just do: image: nixo
by rkangel 4y ago
Do you have a story for how this works with CI? I have a few projects that use a shell.nix to provide my dev environment, then in CI I just do:
image: nixos/nix:latest
before_script:
- nix-env -f shell.nix -i -A buildInputs
This then gives me a CI environment that perfectly matches my dev environment at all times. Some similar story for devenv would be great.
Of course I'm not sure how that would work - one of the things that interests me with devenv over 'vanilla' nix is your approach to processes which doesn't map so well in the scenario I've described.
- rgoulter 4y agoYou can see how it's used in the GitHub actions of devenv: It calls `devenv ci` (which checks that the devenv file is good), then runs a 'script' in the devenv file... https://github.com/cachix/devenv/blob/8bea91cd1073b0d51cf96e694bb56c0639fa172e/.github/workflows/buildtest.yml#L28 https://github.com/cachix/devenv/blob/8bea91cd1073b0d51cf96e... The 'script' in the devenv file: https://github.com/cachix/devenv/blob/8bea91cd1073b0d51cf96e694bb56c0639fa172e/devenv.nix#L28 https://github.com/cachix/devenv/blob/8bea91cd1073b0d51cf96e...