Bugfix: Add separator when calling Lib.Util.nix

This commit is contained in:
Bryan Bennett 2024-01-03 14:05:31 -05:00
parent 83aaf4bc4d
commit 31cac9373c
No known key found for this signature in database
GPG key ID: EE149E4215408DE9

View file

@ -3,7 +3,7 @@ module Unix = Core_unix;
let nix = (args) => { let nix = (args) => {
let stdout_chan = Unix.open_process_in( let stdout_chan = Unix.open_process_in(
"nix --extra-experimental-features \"nix-command flakes\" " ++ (args |> String.concat)); "nix --extra-experimental-features \"nix-command flakes\" " ++ (args |> String.concat(~sep=" ")));
let stdout_content = stdout_chan |> In_channel.input_all; let stdout_content = stdout_chan |> In_channel.input_all;
let exit_code = Unix.close_process_in(stdout_chan); let exit_code = Unix.close_process_in(stdout_chan);
(exit_code, stdout_content) (exit_code, stdout_content)