was talking with a friend whether we should try to package XAMPP with nix or just spin up a docker container. said friend told me we could use both. while they were writing a nix flake that builds a docker container, i did this out of spite:
# Poly boilerplate
ARG @{}:/*=0
# Docker: sudo docker run --rm -it $(sudo docker build -q .)
FROM bash:4.4
CMD echo Hello from Docker with $(bash --version | head -c24)
# Poly boilerplate
RUN <<EOF
exit;*/
# Nix: nix eval --impure --expr '(import ./Dockerfile) {}'
"Hello from Nix ${builtins.nixVersion}"
# Poly boilerplate
/*
EOF
#*/
its both! yes, that is exactly what it looks like: a docker/nix polyglot




