| Commit message (Expand) | Author | Age | Files | Lines |
| * | pkgs: remove optional builtins prefixes from prelude functions•••Remove optional builtins prefixes from prelude functions by running:
builtins=(
abort
baseNameOf
break
derivation
derivationStrict
dirOf
false
fetchGit
fetchMercurial
fetchTarball
fetchTree
fromTOML
import
isNull
map
null
placeholder
removeAttrs
scopedImport
throw
toString
true
)
fd \
--type file \
. \
pkgs \
--exec-batch sed --in-place --regexp-extended "
s/\<builtins\.($(
printf '%s\n' "${builtins[@]}" |
paste --delimiter '|' --serial -
))\>/\1/g
"
nix fmt
| NAHO | 2025-10-04 | 1 | -2/+2 |
| * | treewide: Format all Nix files•••Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:
nix-build ci -A fmt.check
This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).
This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).
Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase).
If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
| Silvan Mosberger | 2025-04-01 | 1 | -20/+32 |
| * | treewide: load structured attributes in all bash builders consistently•••It's hard to put the sourcing of ./.attrs.sh into all builder
consistently - mistakes will happen. Thus, load structured attrs once in
make-derivation and then source the remaining builder on top.
This should fix quite a few builders with structured attributes in
principle. Most importantly it helps substitute / substituteAll, which
are required for bootstrap on some platforms.
| Wolfgang Walther | 2024-12-29 | 2 | -3/+0 |
| * | treewide: format all inactive Nix files•••After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
--argstr baseRev 57b193d8ddeaf4f5219d2bae1d23b081e4906e57
result/bin/apply-formatting $NIXPKGS_PATH
| Silvan Mosberger | 2024-12-10 | 4 | -51/+89 |
| * | Merge staging-next into staging | github-actions[bot] | 2023-10-21 | 2 | -1/+2 |
| |\ |
|
| | * | fetchdocker: fix missing lib | Artturin | 2023-10-20 | 2 | -1/+2 |
| * | | treewide: refactor `.attrs.sh` detection•••When specifying the `builder` attribute in `stdenv.mkDerivation`, this
will be effectively transformed into
builtins.derivation {
builder = stdenv.shell;
args = [ "-e" builder ];
}
This also means that `default-builder.sh` is never sourced and as a
result it's not guaranteed that `$NIX_ATTRS_SH_FILE` is set to a correct
location[1].
Also, we need to source `.attrs.sh` to source `$stdenv`. So, the
following is done now:
* If `$NIX_ATTRS_SH_FILE` points to a correct location, then use it.
Directly using `.attrs.sh` is problematic for `nix-shell(1)` usage
(see previous commit for more context), so prefer the environment
variable if possible.
* Otherwise, if `.attrs.sh` exists, then use it. See [1] for when this
can happen.
* If neither applies, it can be assumed that `__structuredAttrs` is
turned off and thus nothing needs to be done.
[1] It's possible that it doesn't exist at all - in case of Nix 2.3 or
it can point to a wrong location on older Nix versions with a bug in
`__structuredAttrs`.
| Maximilian Bosch | 2023-10-04 | 1 | -1/+1 |
| |/ |
|
| * | treewide: don't hardcode /nix/store (no rebuilds changes)•••improve experience for other store locations
| Artturin | 2023-03-24 | 1 | -1/+1 |
| * | treewide: use optionalString | Felix Buehler | 2023-02-13 | 1 | -1/+1 |
| * | treewide: remove usages of header and stopNest•••they're obsolete
| Artturin | 2023-01-16 | 2 | -6/+3 |
| * | treewide: source .attrs in builders•••if theres a source $stdenv then this is needed
for structuredAttrs
| Artturin | 2022-12-08 | 1 | -1/+2 |
| * | fix: fetchdocker call signature | David Arnold | 2021-05-08 | 2 | -2/+2 |
| * | treewide: remove stdenv where not needed | Pavol Rusnak | 2021-01-25 | 2 | -2/+2 |
| * | treewide: remove redundant quotes | volth | 2019-08-26 | 1 | -2/+2 |
| * | Merge branch 'no-toPath' | Shea Levy | 2018-09-06 | 1 | -2/+2 |
| |\ |
|
| | * | treewide: Remove uses of builtins.toPath.•••toPath has confusing semantics and is never necessary; it can always
either just be omitted or replaced by pre-concatenating `/.`. It has
been marked as "!!! obsolete?" for more than 10 years in a C++
comment, hopefully removing it will let us properly deprecate and,
eventually, remove it.
| Shea Levy | 2018-05-22 | 1 | -2/+2 |
| * | | nixos/tests/hocker-fetchdocker: fix evaluation•••it still does not build
| Symphorien Gibol | 2018-08-10 | 1 | -1/+1 |
| * | | pkgs/*: remove unreferenced function arguments | volth | 2018-07-21 | 2 | -2/+2 |
| * | | [bot]: remove unreferenced code | volth | 2018-07-20 | 1 | -2/+0 |
| |/ |
|
| * | docker: init fetchdocker nix code for docker2nix•••This change adds granular, non-docker daemon docker image fetchers and
a docker image layer compositor to be used in conjunction with the
`docker2nix` utility provided by the `haskellPackages.hocker` package.
This change includes a hackage package version bump and updated sha256
for recent fixes released to `hocker` resulting from formulating this
patch.
| Parnell Springmeyer | 2017-12-01 | 6 | -0/+250 |