Skip to content

Commit

Permalink
fix reading nix.env file location
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGibb committed May 23, 2024
1 parent f881c8a commit 187d0cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/opamEnv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ let compute_updates ?(force_path=false) st =
in
let nix_env =
let open OpamFilename in
create st.switch_global.root (basename (raw "nix.env"))
create (OpamPath.Switch.meta OpamStateConfig.(!r.root_dir) st.switch) (basename (raw "nix.env"))
|> OpamFile.make
|> OpamFile.Environment.read
|> List.map resolve_separator_and_format
Expand Down

0 comments on commit 187d0cf

Please # to comment.