Skip to content

Commit

Permalink
containers are only supported on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Feb 23, 2024
1 parent 1efe0b2 commit deae4e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
tmp="$(mktemp -d)"
devenv init "$tmp"
pushd "$tmp"
echo -e " devenv:\n url: path:${config.devenv.root}/src/modules" >> devenv.yaml
echo -e " devenv:\n url: path:${config.devenv.root}?dir=src/modules" >> devenv.yaml
cat devenv.yaml
devenv version
devenv ci
Expand Down Expand Up @@ -81,7 +81,10 @@
grep -F 'nix-develop started succesfully' <./console
grep -F "$(${lib.getExe pkgs.hello})" <./console
# Test that a container can be built
nix build --impure --accept-flake-config .#container-processes
if $(uname) == "Linux"
then
nix build --impure --accept-flake-config --show-trace .#container-processes
fi
popd
rm -rf "$tmp"
'';
Expand Down

0 comments on commit deae4e8

Please sign in to comment.