{ sources ? null }:
let
  deps = import ./nix/deps.nix { inherit sources; };
  pkgs = deps.pkgs;
  caBundle = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";

in pkgs.mkShell {
  name = "ekklesia-portal";
  buildInputs = deps.shellInputs;
  # A pure nix shell breaks SSL for git and nix tools which is fixed by setting the path to the certificate bundle.
  shellHook = ''
    export PYTHONPATH=./src:../ekklesia-common/src
    export PATH=${deps.shellPath}
    export NIX_SSL_CERT_FILE=${caBundle}
    export SSL_CERT_FILE=${caBundle}
    export SASS_PATH=${deps.sassPath}
    export JS_PATH=${deps.jsPath}
    export WEBFONTS_PATH=${deps.webfontsPath}
  '';
}

{ sources ? null }:
let
  deps = import ./nix/deps.nix { inherit sources; };
  pkgs = deps.pkgs;
  caBundle = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";

in pkgs.mkShell {
  name = "ekklesia-portal";
  buildInputs = deps.shellInputs;
  # A pure nix shell breaks SSL for git and nix tools which is fixed by setting the path to the certificate bundle.
  shellHook = ''
    export PYTHONPATH=./src:../ekklesia-common/src
    export PATH=${deps.shellPath}:$PATH
    export NIX_SSL_CERT_FILE=${caBundle}
    export SSL_CERT_FILE=${caBundle}
    export SASS_PATH=${deps.sassPath}
    export JS_PATH=${deps.jsPath}
    export WEBFONTS_PATH=${deps.webfontsPath}
  '';
}

Fix for newer lorri versions
Fix for newer lorri versions

cat was missing from the PATH
