From deae4e8e86682863c71201d7908966c49eeb2628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Fri, 23 Feb 2024 03:53:14 +0000 Subject: [PATCH] containers are only supported on linux --- devenv.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/devenv.nix b/devenv.nix index 220372d33..eccd4a528 100644 --- a/devenv.nix +++ b/devenv.nix @@ -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 @@ -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" '';