1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02:00

Support URLs in $NIX_PATH

This didn't work (despite claims in the manual), because the colon in
"http://" was parsed as a element separator. So handle "://"
specially.
This commit is contained in:
Eelco Dolstra 2015-06-17 16:20:11 +02:00
parent 0d4d92fcf9
commit 65f17cd330
3 changed files with 32 additions and 1 deletions

View file

@ -341,6 +341,11 @@ string chomp(const string & s);
string trim(const string & s, const string & whitespace = " \n\r\t");
/* Replace all occurrences of a string inside another string. */
string replaceStrings(const std::string & s,
const std::string & from, const std::string & to);
/* Convert the exit status of a child as returned by wait() into an
error string. */
string statusToString(int status);