Fix substituteInPlace invocation take 2

This commit is contained in:
Bryan Bennett 2023-12-21 11:37:36 -05:00
parent ee3b429285
commit ce54582744
No known key found for this signature in database
GPG key ID: EE149E4215408DE9
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ buildDunePackage {
src = ./.; src = ./.;
duneVersion = "3"; duneVersion = "3";
postPatch = '' postPatch = ''
substituteInPlace direnvrc --replace "flake_env" "$out/bin/flake_env" substituteInPlace direnvrc --replace "@flake_env@" "$out/bin/flake_env"
''; '';
postInstall = '' postInstall = ''
install -m400 -D direnvrc $out/share/flake_env/direnvrc install -m400 -D direnvrc $out/share/flake_env/direnvrc

View file

@ -39,7 +39,7 @@ use_flake_env() {
local old_xdg_data_dirs=${XDG_DATA_DIRS:-} local old_xdg_data_dirs=${XDG_DATA_DIRS:-}
local ld=$(direnv_layout_dir) local ld=$(direnv_layout_dir)
eval $(flake_env "$1" "$ld") eval $(@flake_env@ "$1" "$ld")
# `nix print-dev-env` will create a temporary directory and use it as TMPDIR # `nix print-dev-env` will create a temporary directory and use it as TMPDIR
# We cannot rely on this directory being available at all times, # We cannot rely on this directory being available at all times,