aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-06-23 15:19:47 +0200
committereldritch horrors <pennae@lix.systems>2024-06-23 17:29:40 +0000
commitd477b34d1df3b471f8132525b0a008bbd03ddb6d (patch)
treedbf58b2cfd0f5ed0944ca62dcfc7cd73b34b5dee /src/libcmd/repl.cc
parent2bbdaf0b19066ea1764e8d5810c2b250dbf0a850 (diff)
libutil: remove runProgram2 stdin functionality
this was only used in one place, and that place has been rewritten to use a temporary file instead. keeping this around is not very helpful at this time, and in any case we'd be better off rewriting subprocess handling in rust where we not only have a much safer library for such things but also async frameworks necessary for this easily available. Change-Id: I6f8641b756857c84ae2602cdf41f74ee7a1fda02
Diffstat (limited to 'src/libcmd/repl.cc')
-rw-r--r--src/libcmd/repl.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index 99abbe44b..32cbf8e33 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -242,8 +242,7 @@ NixRepl::NixRepl(const SearchPath & searchPath, nix::ref<Store> store, ref<EvalS
{
}
-void runNix(Path program, const Strings & args,
- const std::optional<std::string> & input = {})
+void runNix(Path program, const Strings & args)
{
auto subprocessEnv = getEnv();
subprocessEnv["NIX_CONFIG"] = globalConfig.toKeyValue();
@@ -252,7 +251,6 @@ void runNix(Path program, const Strings & args,
.program = settings.nixBinDir+ "/" + program,
.args = args,
.environment = subprocessEnv,
- .input = input,
});
return;