You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-34
Original file line number
Diff line number
Diff line change
@@ -114,10 +114,11 @@ Commands:
114
114
help Print this message or the help of the given subcommand(s)
115
115
116
116
Options:
117
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
118
-
-v, --verbose Print debug messages
119
-
-h, --help Print help
120
-
-V, --version Print version
117
+
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
118
+
--lock-file <LOCK_FILE> Specifies the path to the sources.json and activates lockfile mode. In lockfile mode, no default.nix will be generated and --directory will be ignored
119
+
-v, --verbose Print debug messages
120
+
-h, --help Print help
121
+
-V, --version Print version
121
122
```
122
123
123
124
### Initialization
@@ -137,10 +138,9 @@ Intializes the npins directory. Running this multiple times will restore/upgrade
137
138
Usage: npins init [OPTIONS]
138
139
139
140
Options:
140
-
--bare Don't add an initial `nixpkgs` entry
141
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
142
-
-v, --verbose Print debug messages
143
-
-h, --help Print help
141
+
--bare Don't add an initial `nixpkgs` entry
142
+
-v, --verbose Print debug messages
143
+
-h, --help Print help
144
144
```
145
145
146
146
### Migrate from Niv
@@ -166,10 +166,9 @@ Arguments:
166
166
[PATH] [default: nix/sources.json]
167
167
168
168
Options:
169
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
170
-
-n, --name <NAME> Only import one entry from Niv
171
-
-v, --verbose Print debug messages
172
-
-h, --help Print help
169
+
-n, --name <NAME> Only import one entry from Niv
170
+
-v, --verbose Print debug messages
171
+
-h, --help Print help
173
172
```
174
173
175
174
### Adding dependencies
@@ -208,11 +207,10 @@ Commands:
208
207
help Print this message or the help of the given subcommand(s)
209
208
210
209
Options:
211
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
212
-
--name <NAME> Add the pin with a custom name. If a pin with that name already exists, it will be overwritten
213
-
-n, --dry-run Don't actually apply the changes
214
-
-v, --verbose Print debug messages
215
-
-h, --help Print help
210
+
--name <NAME> Add the pin with a custom name. If a pin with that name already exists, it will be overwritten
211
+
-n, --dry-run Don't actually apply the changes
212
+
-v, --verbose Print debug messages
213
+
-h, --help Print help
216
214
```
217
215
218
216
There are several options for tracking git branches, releases and tags:
@@ -229,16 +227,14 @@ Arguments:
229
227
Options:
230
228
-b, --branch <BRANCH>
231
229
Track a branch instead of a release
232
-
-d, --directory <FOLDER>
233
-
Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
234
230
--name <NAME>
235
231
Add the pin with a custom name. If a pin with that name already exists, it will be overwritten
236
232
--at <tag or rev>
237
233
Use a specific commit/release instead of the latest. This may be a tag name, or a git revision when --branch is set
238
-
-v, --verbose
239
-
Print debug messages
240
234
--pre-releases
241
235
Also track pre-releases. Conflicts with the --branch option
236
+
-v, --verbose
237
+
Print debug messages
242
238
--upper-bound <version>
243
239
Bound the version resolution. For example, setting this to "2" will restrict updates to 1.X versions. Conflicts with the --branch option
244
240
--release-prefix <RELEASE_PREFIX>
@@ -261,9 +257,8 @@ Arguments:
261
257
<NAME>
262
258
263
259
Options:
264
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
265
-
-v, --verbose Print debug messages
266
-
-h, --help Print help
260
+
-v, --verbose Print debug messages
261
+
-h, --help Print help
267
262
```
268
263
269
264
### Show current entries
@@ -277,9 +272,8 @@ Lists the current pin entries
277
272
Usage: npins show [OPTIONS]
278
273
279
274
Options:
280
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
281
-
-v, --verbose Print debug messages
282
-
-h, --help Print help
275
+
-v, --verbose Print debug messages
276
+
-h, --help Print help
283
277
```
284
278
285
279
### Updating dependencies
@@ -296,16 +290,14 @@ Arguments:
296
290
[NAMES]... Updates only the specified pins
297
291
298
292
Options:
299
-
-d, --directory <FOLDER>
300
-
Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
301
293
-p, --partial
302
294
Don't update versions, only re-fetch hashes
303
295
-f, --full
304
296
Re-fetch hashes even if the version hasn't changed. Useful to make sure the derivations are in the Nix store
0 commit comments