Skip to content

Commit

Permalink
Merge pull request #847 from penguincoder/python-rewrite
Browse files Browse the repository at this point in the history
[FEAT] Conditionally link devenv profile for python-rewrite
  • Loading branch information
domenkozar authored Oct 23, 2023
2 parents 4a056a3 + 9e5a634 commit 0afbca5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/modules/services/postgres.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ let
echo "PostgreSQL is setting up the initial database."
echo
OLDPGHOST="$PGHOST"
PGHOST="$DEVENV_STATE/$(mktemp -d "pg-init-XXXXXX")"
mkdir -p "$PGHOST"
PGHOST=$(mktemp -d "$DEVENV_STATE/pg-init-XXXXXX")
function remove_tmp_pg_init_sock_dir() {
if [[ -d "$1" ]]; then
Expand Down
6 changes: 4 additions & 2 deletions src/modules/top-level.nix
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,10 @@ in
fi
mkdir -p .devenv
rm -f .devenv/profile
ln -s ${profile} .devenv/profile
if [ ! -L .devenv/profile ] || [ "$(${pkgs.coreutils}/bin/readlink .devenv/profile)" != "${profile}" ]
then
ln -nsf ${profile} .devenv/profile
fi
unset ${lib.concatStringsSep " " config.unsetEnvVars}
'';

Expand Down

0 comments on commit 0afbca5

Please sign in to comment.