Age | Commit message (Collapse) | Author |
|
I think this better captures the intent of what's going on: we either
have an opaque store path, or a drv path with some outputs.
Having this structure will also help us support CA derivations: we'll
have to allow the outpath paths to be optional, so the structure we gain
now makes up for the structure we loose then.
|
|
Get rid of `basicDerivation::findOutput`
|
|
It's a tiny function which is:
- hardly worth abstrating over, and also only used once.
- doesn't work once we get CA drvs
I rewrote the one callsite to be forwards compatable with CA
derivations, and also potentially more performant: instead of reading in
the derivation it can ust consult the SQLite DB in the common case.
|
|
Save changes made by "nix registry pin" to user registry
|
|
|
|
Separate concerns in `scanForReferences` with TeeSink
|
|
This also will make it easier to use a `HashModuloSink` instead for CA
derivations.
|
|
README: Fix link to hacking guide
|
|
The link was previously interpreted as if it were relative to the current file.
|
|
obsidiansystems/allow-relative-paths-in-store-option
Allow relative paths in --store option
|
|
Add response body to network errors
|
|
The was Eelco's prefered logic, and it looks good to me!
|
|
obsidiansystems/update-chunksize-to-suggested-value
Update chunkSize to the suggested value
|
|
This was a suggested course of action in a review in one of our earlier
commits, https://github.com/NixOS/nix/pull/3801#discussion_r457557079
|
|
|
|
Constant space `addToStoreFromDump` and deduplicate code
|
|
README: improve development docs
|
|
Correct bug, thoroughly document addToStoreSlow
|
|
github.com:obsidiansystems/nix into from-dump-stream
|
|
|
|
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
|
|
Due to https://github.com/NixOS/nix/issues/3841 we don't know how print
different messages for different verbosity levels.
|
|
|
|
Optimize `addToStoreSlow` and remove `TeeParseSink`
|
|
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
|
|
|
|
Add newline to profile sourcing line #3393
|
|
|
|
fix make's impurity on /bin/sh
|
|
nix edit: call restoreSignals() before `execvp`-ing the $EDITOR
|
|
This is important when using tooling like BEAR to generate
compilation database since the used glibc version needs to match
for LD_PRELOAD to work. It might be also beneficial when building
on systems other than NixOS with nix develop since /bin/sh might
be not bash (which is what all nix devs use for testing).
This fix is not perfect because Makefile.config.in itself is
also build with make but strictly better than the status quo.
|
|
|
|
allow-relative-paths-in-store-option
|
|
Currently resizing of the terminal doesn't play nicely with
nix edit when using kakoune as the editor, as it relies on the
SIGWINCH signal which is trapped by nix. How this is not a problem
with e.g. vim is beyond me.
Virtually all other exec* calls are following a call to
restoreSignals(). This commit adds this behavior to nix edit
as well.
|
|
Add back flake-compat shell.nix
|
|
This was removed in the merge commit
adf2fbbdc2c94644b0d1023d844c7dc0e485a20f. I think this was a mistake
that occurred when resolving a conflict.
|
|
|
|
|
|
|
|
This shows all changes between generations of a profile. E.g.
$ nix profile diff-closures --profile /nix/var/nix/profiles/system
Generation 654 -> 655:
nix: 2.4pre20200617_5d69bbf → 2.4pre20200701_6ff9aa8, +42.2 KiB
Generation 655 -> 656:
blender-bin: 2.83.0 → 2.83.1, -294.2 KiB
Generation 656 -> 657:
curl: 7.68.0 → 7.70.0, +19.1 KiB
firmware-linux-nonfree: 2020-01-22 → 2020-05-19, +30827.7 KiB
ibus: -21.8 KiB
initrd-linux: 5.4.46 → 5.4.49
...
|
|
We use this to simplify `LocalStore::addToStoreFromDump`.
Also, hope I fixed build error with old clang (used in Darwin CI).
|
|
|
|
|
|
|
|
|
|
|
|
This reverts commit 592851fb67cd15807109d6f65fb81f6af89af966. We don't
need this extra feature anymore
|
|
I got it to just become `LocalStore::addToStoreFromDump`, cleanly taking
a store and then doing nothing too fancy with it.
`LocalStore::addToStore(...Path...)` is now just a simple wrapper with a
bare-bones sinkToSource of the right dump command.
|
|
|
|
This reverts commit cff2157185912025c24a1b9dc99056161634176c.
|