1 2 3 4 5 6 7
{ pkgs, ... }: let python = "${pkgs.python3}/bin/python"; in pkgs.writeShellScriptBin "serve" '' exec ${python} -m http.server "$@" ''