Age | Commit message (Collapse) | Author |
|
Make archive preallocation (fallocate) optional because some filesystems
like btrfs do not behave as expected with fallocate.
See #3550.
|
|
Use gold as the linker on Linux
|
|
Saves ~7s in the linking phase
|
|
|
|
fixed typo
|
|
|
|
This leads to a deadlock if we're at the connection limit.
|
|
Add a nix.conf option for allowing a symlinked store
|
|
|
|
|
|
Fix compatibility with nlohmann-json 3.9.1
|
|
Serialize SandboxMode enum to string for JSON
|
|
Silence a compiler warning in serialise.hh
|
|
Disable `FORTIFY_SOURCE` when compiling without optims
|
|
Explicitely cast to `uint64_t` in `readNum` to avoid a "comparison
between signed and unsigned" warning
|
|
Otherwise the build is cluttered with
```
/nix/store/fwpn2f7a4iqszyydw7ag61zlnp6xk5d3-glibc-2.30-dev/include/features.h:382:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
382 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
| ^~~~~~~
```
when building with `OPTIMIZE=0`
|
|
|
|
Rather than showing an integer as the default, instead show the boolean
referenced in the description.
The nix.conf.5 manpage used to show "default: 0", which is unnecessarily
opaque and confusing (doesn't 0 mean false, even though the default is
true?); now it properly shows that the default is true.
|
|
This cuts compilation time by ~49s.
Issue #4045.
|
|
|
|
|
|
This reduces compilation time by 207s.
Issue #4045.
|
|
This gets rid of the inclusion of <future> in util.hh, cutting
compilation time by ~20s (CPU time).
Issue #4045.
|
|
|
|
This reduces compilation time by ~15 seconds (CPU time).
Issue #4045.
|
|
|
|
libfetchers/github: allow `url` attribute
|
|
|
|
They're still enabled in regular builds though.
|
|
Update lowdown version
|
|
Fix #4042
According to https://github.com/kristapsdz/lowdown/commit/8aef9e9290de22a10c14ae138257bc1c7fa8ba1f, we shouldn't need to use a fork anymore so we can switch back to upstream
|
|
Fix the nix-daemon Mac OS SSL CA cert
|
|
nix-prefetch-url: Add --executable flag
|
|
Also checked that all usages satisfy the requirement and
removed dead code.
|
|
A ValidPathInfo is created anyway. By returning it we can save a
roundtrip and we have a nicer interface.
|
|
|
|
Co-authored-by: John Ericson <git@JohnEricson.me>
|
|
|
|
Co-authored-by: John Ericson <git@JohnEricson.me>
|
|
|
|
|
|
|
|
|
|
pkgs.fetchurl supports an executable argument, which is especially nice
when downloading a large executable. This patch adds the same option to
nix-prefetch-url.
I have tested this to work on the simple case of prefetching a little
executable:
1. nix-prefetch-url --executable https://my/little/script
2. Paste the hash into a pkgs.fetchurl-based package, script-pkg.nix
3. Delete the output from the store to avoid any misidentified artifacts
4. Realise the package script-pkg.nix
5. Run the executable
I repeated the above while using --name, as well.
I suspect --executable would have no meaningful effect if combined with
--unpack, but I have not tried it.
|
|
Since 108debef6f703aa3ca1f6d6c45428880624ec6f8 we allow a
`url`-attribute for the `github`-fetcher to fetch tarballs from
self-hosted `gitlab`/`github` instances.
However it's not used when defining e.g. a flake-input
foobar = {
type = "github";
url = "gitlab.myserver";
/* ... */
}
and breaks with an evaluation-error:
error: --- Error --------------------------------------nix
unsupported input attribute 'url'
(use '--show-trace' to show detailed location information)
This patch allows flake-inputs to be fetched from self-hosted instances
as well.
|
|
find() returns an iterator so "!attr" doesn't work.
|
|
|
|
|
|
|
|
|