Skip to content

Commit

Permalink
Rename "use-substitutes" to "substitute"
Browse files Browse the repository at this point in the history
Commit c2154d4 renamed
"build-use-substitutes" to "use-substitutes", but that broke
"nix-copy-closure --use-substitutes".
  • Loading branch information
edolstra committed Jan 4, 2018
1 parent 1b851ae commit 44272d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/manual/command-ref/conf-file.xml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/libstore/globals.hh
Expand Up @@ -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"}};

Expand Down
2 changes: 1 addition & 1 deletion tests/shell.shebang.sh
@@ -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) $@"

0 comments on commit 44272d8

Please sign in to comment.