From e67b1ec99f4a8472b4e72573e95a39542d67cd5e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 23 Jan 2024 19:51:49 -0500 Subject: [PATCH] mark phoenix as broken --- examples/phoenix/.test.sh | 21 +++++++++++---------- examples/phoenix/devenv.nix | 2 ++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/examples/phoenix/.test.sh b/examples/phoenix/.test.sh index 75f3c0b25..b687eac17 100755 --- a/examples/phoenix/.test.sh +++ b/examples/phoenix/.test.sh @@ -1,12 +1,13 @@ #!/usr/bin/env bash set -ex -mkdir hello -mix local.hex --force -mix local.rebar --force -echo Y | mix archive.install hex phx_new -echo Y | mix phx.new hello -sed -i.bak -e "s/username: \"postgres\",/socket_dir: System.get_env(\"PGDATA\"),/" \ - ./hello/config/dev.exs && rm ./hello/config/dev.exs.bak -devenv up& -timeout 20 bash -c 'until echo > /dev/tcp/localhost/4000; do sleep 0.5; done' -curl -s http://localhost:4000/ | grep "Phoenix Framework" +# mix local.hex --force +# mix local.rebar --force +# echo Y | mix archive.install hex phx_new +# echo Y | mix phx.new hello +# sed -i.bak -e "s/username: \"postgres\",/socket_dir: System.get_env(\"PGDATA\"),/" \ +# ./hello/config/dev.exs && rm ./hello/config/dev.exs.bak +# devenv up& +# timeout 20 bash -c 'until echo > /dev/tcp/localhost/4000; do sleep 0.5; done' +# curl -s http://localhost:4000/ | grep "Phoenix Framework" +echo "this example is currently broken" +exit 2 diff --git a/examples/phoenix/devenv.nix b/examples/phoenix/devenv.nix index e6d6a4241..a5ce5f7b3 100644 --- a/examples/phoenix/devenv.nix +++ b/examples/phoenix/devenv.nix @@ -1,6 +1,8 @@ { pkgs, lib, ... }: { + # this example is currently broken + packages = lib.optionals pkgs.stdenv.isLinux [ pkgs.inotify-tools ]; languages.elixir.enable = true;