Skip to content

Commit

Permalink
Merge pull request #241 from sternenseemann/nix-2.3-install-check
Browse files Browse the repository at this point in the history
agenix: fix installCheckPhase with Nix 2.3
  • Loading branch information
n8henrie committed May 24, 2024
2 parents 8d37c5b + 1746e4f commit c2fc076
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/agenix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ in
shellcheck ${bin}
${bin} -h | grep ${version}
HOME=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir')
test_tmp=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir')
export HOME="$test_tmp/home"
export NIX_STORE_DIR="$test_tmp/nix/store"
export NIX_STATE_DIR="$test_tmp/nix/var"
mkdir -p "$HOME" "$NIX_STORE_DIR" "$NIX_STATE_DIR"
function cleanup {
rm -rf $HOME
rm -rf "$test_tmp"
}
trap "cleanup" 0 2 3 15
Expand Down

0 comments on commit c2fc076

Please sign in to comment.