mirror of
https://git.sr.ht/~bryan_bennett/flake_env
synced 2025-12-16 22:51:24 +01:00
Fix substituteInPlace invocation take 2
This commit is contained in:
parent
ee3b429285
commit
ce54582744
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ buildDunePackage {
|
|||
src = ./.;
|
||||
duneVersion = "3";
|
||||
postPatch = ''
|
||||
substituteInPlace direnvrc --replace "flake_env" "$out/bin/flake_env"
|
||||
substituteInPlace direnvrc --replace "@flake_env@" "$out/bin/flake_env"
|
||||
'';
|
||||
postInstall = ''
|
||||
install -m400 -D direnvrc $out/share/flake_env/direnvrc
|
||||
|
|
|
|||
2
direnvrc
2
direnvrc
|
|
@ -39,7 +39,7 @@ use_flake_env() {
|
|||
local old_xdg_data_dirs=${XDG_DATA_DIRS:-}
|
||||
|
||||
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
|
||||
# We cannot rely on this directory being available at all times,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue