Skip to content

Commit 8679672

Browse files
committed
Remove manifest support
Manifests have been superseded by binary caches for years. This also gets rid of nix-pull, nix-generate-patches and bsdiff/bspatch.
1 parent af4fb6e commit 8679672

37 files changed

+20
-2143
lines changed

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Makefile.config
3434

3535
# /scripts/
3636
/scripts/nix-profile.sh
37-
/scripts/nix-pull
3837
/scripts/nix-push
3938
/scripts/nix-switch
4039
/scripts/nix-collect-garbage
@@ -43,22 +42,15 @@ Makefile.config
4342
/scripts/nix-channel
4443
/scripts/nix-build
4544
/scripts/nix-copy-closure
46-
/scripts/nix-generate-patches
4745
/scripts/NixConfig.pm
4846
/scripts/NixManifest.pm
49-
/scripts/GeneratePatches.pm
50-
/scripts/download-using-manifests.pl
5147
/scripts/copy-from-other-stores.pl
5248
/scripts/download-from-binary-cache.pl
5349
/scripts/find-runtime-roots.pl
5450
/scripts/build-remote.pl
5551
/scripts/nix-reduce-build
5652
/scripts/nix-http-export.cgi
5753

58-
# /src/bsdiff-4.3/
59-
/src/bsdiff-4.3/bsdiff
60-
/src/bsdiff-4.3/bspatch
61-
6254
# /src/libexpr/
6355
/src/libexpr/lexer-tab.cc
6456
/src/libexpr/lexer-tab.hh

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ makefiles = \
1414
src/download-via-ssh/local.mk \
1515
src/nix-log2xml/local.mk \
1616
src/nix-prefetch-url/local.mk \
17-
src/bsdiff-4.3/local.mk \
1817
perl/local.mk \
1918
scripts/local.mk \
2019
corepkgs/local.mk \

doc/manual/command-ref/conf-file.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -435,18 +435,6 @@ flag, e.g. <literal>--option gc-keep-outputs false</literal>.</para>
435435
</varlistentry>
436436

437437

438-
<varlistentry><term><literal>force-manifest</literal></term>
439-
440-
<listitem><para>If this option is set to <literal>false</literal>
441-
(default) and a Nix channel provides both a manifest and a binary
442-
cache, only the binary cache will be used. If set to
443-
<literal>true</literal>, the manifest will be fetched as well.
444-
This is useful if you want to use binary patches (which are
445-
currently not supported by binary caches).</para></listitem>
446-
447-
</varlistentry>
448-
449-
450438
<varlistentry><term><literal>system</literal></term>
451439

452440
<listitem><para>This option specifies the canonical Nix system

doc/manual/command-ref/nix-channel.xml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,10 @@ condition="manual">See also <xref linkend="sec-channels"
7373

7474
<listitem><para>Downloads the Nix expressions of all subscribed
7575
channels (or only those included in
76-
<replaceable>names</replaceable> if specified), makes them the
76+
<replaceable>names</replaceable> if specified) and makes them the
7777
default for <command>nix-env</command> operations (by symlinking
78-
them from the directory <filename>~/.nix-defexpr</filename>), and
79-
performs a <command>nix-pull</command> on the manifests of all
80-
channels to make pre-built binaries available.</para></listitem>
78+
them from the directory
79+
<filename>~/.nix-defexpr</filename>).</para></listitem>
8180

8281
</varlistentry>
8382

@@ -187,16 +186,6 @@ following files:</para>
187186

188187
</varlistentry>
189188

190-
<varlistentry><term><filename>MANIFEST.bz2</filename></term>
191-
192-
<listitem><para>(Deprecated in favour of binary caches.) A
193-
manifest as created by <command>nix-push</command>. Only used if
194-
<filename>binary-cache-url</filename> is not present or if the
195-
<filename>nix.conf</filename> option
196-
<option>force-manifest</option> is set.</para></listitem>
197-
198-
</varlistentry>
199-
200189
</variablelist>
201190

202191
</refsection>

doc/manual/command-ref/nix-generate-patches.xml

Lines changed: 0 additions & 44 deletions
This file was deleted.

doc/manual/command-ref/nix-install-package.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ The elements are as follows:
146146

147147
<varlistentry><term><replaceable>manifestURL</replaceable></term>
148148

149-
<listitem><para>The manifest to be pulled by
150-
<command>nix-pull</command>. The manifest must contain
151-
<replaceable>outPath</replaceable>.</para></listitem>
149+
<listitem><para>Obsolete.</para></listitem>
152150

153151
</varlistentry>
154152

doc/manual/command-ref/nix-pull.xml

Lines changed: 0 additions & 54 deletions
This file was deleted.

doc/manual/command-ref/nix-push.xml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ automatically.</para>
7373
<listitem><para>Optionally, a single <emphasis>manifest</emphasis>
7474
file is created that contains the same metadata as the
7575
<filename>.narinfo</filename> files. This is for compatibility with
76-
Nix versions prior to 1.2 (see <command>nix-pull</command> for
77-
details).</para></listitem>
76+
Nix versions prior to 1.2.</para></listitem>
7877

7978
<listitem><para>A file named <option>nix-cache-info</option> is
8079
placed in the destination directory. The existence of this file
@@ -135,7 +134,7 @@ automatically.</para>
135134
<varlistentry><term><option>--manifest</option></term>
136135

137136
<listitem><para>Force the generation of a manifest suitable for
138-
use by <command>nix-pull</command>. The manifest is stored as
137+
use by old versions of Nix. The manifest is stored as
139138
<filename><replaceable>dest-dir</replaceable>/MANIFEST</filename>.</para></listitem>
140139

141140
</varlistentry>
@@ -203,20 +202,6 @@ $ nix-push --dest /tmp/cache $(nix-instantiate -A thunderbird)
203202

204203
</para>
205204

206-
<para>To generate a manifest suitable for <command>nix-pull</command>:
207-
208-
<screen>
209-
$ nix-push --dest /tmp/cache $(nix-build -A thunderbird) --manifest
210-
</screen>
211-
212-
On another machine you can then do:
213-
214-
<screen>
215-
$ nix-pull http://example.org/cache
216-
</screen>
217-
218-
to cause the binaries to be used by subsequent Nix operations.</para>
219-
220205
<para>To generate a signed binary cache, you must first generate a key
221206
pair, in this example called <literal>cache.example.org-1</literal>,
222207
storing the secret key in <filename>./sk</filename> and the public key

doc/manual/command-ref/utilities.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ work with Nix.</para>
1313
<xi:include href="nix-collect-garbage.xml" />
1414
<xi:include href="nix-copy-closure.xml" />
1515
<xi:include href="nix-daemon.xml" />
16-
<!--
17-
<xi:include href="nix-generate-patches.xml" />
18-
-->
1916
<xi:include href="nix-hash.xml" />
2017
<xi:include href="nix-install-package.xml" />
2118
<xi:include href="nix-instantiate.xml" />
2219
<xi:include href="nix-prefetch-url.xml" />
23-
<xi:include href="nix-pull.xml" />
2420
<xi:include href="nix-push.xml" />
2521

2622
</chapter>

doc/manual/local.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dist-files += $(d)/manual.xmli $(d)/version.txt $(d)/manual.is-valid
3939
# Generate man pages.
4040
man-pages := $(foreach n, \
4141
nix-env.1 nix-build.1 nix-shell.1 nix-store.1 nix-instantiate.1 \
42-
nix-collect-garbage.1 nix-push.1 nix-pull.1 \
42+
nix-collect-garbage.1 nix-push.1 \
4343
nix-prefetch-url.1 nix-channel.1 \
4444
nix-install-package.1 nix-hash.1 nix-copy-closure.1 \
4545
nix.conf.5 nix-daemon.8, \

0 commit comments

Comments
 (0)