Rename "use-substitutes" to "substitute"

Commit c2154d4c84 renamed
"build-use-substitutes" to "use-substitutes", but that broke
"nix-copy-closure --use-substitutes".
This commit is contained in:
Eelco Dolstra 2018-01-04 16:57:25 +01:00
parent 1b851ae8f6
commit 44272d8719
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
3 changed files with 3 additions and 3 deletions

View File

@ -312,7 +312,7 @@ false</literal>.</para>
</varlistentry>
<varlistentry><term><literal>use-substitutes</literal></term>
<varlistentry><term><literal>substitute</literal></term>
<listitem><para>If set to <literal>true</literal> (default), Nix
will use binary substitutes if available. This option can be

View File

@ -150,7 +150,7 @@ public:
Setting<bool> syncBeforeRegistering{this, false, "sync-before-registering",
"Whether to call sync() before registering a path as valid."};
Setting<bool> useSubstitutes{this, true, "use-substitutes",
Setting<bool> useSubstitutes{this, true, "substitute",
"Whether to use substitutes.",
{"build-use-substitutes"}};

View File

@ -1,4 +1,4 @@
#! @ENV_PROG@ nix-shell
#! nix-shell -I nixpkgs=shell.nix --no-use-substitutes
#! nix-shell -I nixpkgs=shell.nix --no-substitute
#! nix-shell --pure -i bash -p foo bar
echo "$(foo) $(bar) $@"