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:
parent
0d4d92fcf9
commit
65f17cd330
3 changed files with 32 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue