| Commit message (Expand) | Author | Age | Files | Lines |
| * | fetchFromBitbucket: modify tests for `fetchgit` backend | Jasi | 2025-10-05 | 1 | -2/+11 |
| * | fetchFromBitbucket: implement fetchgit codepath•••This allows `fetchFromBitbucket` to interface with `fetchgit` if
git-related arguments are given.
| Jasi | 2025-10-05 | 1 | -12/+93 |
| * | fetchFromBitbucket: url escape rev (#386460) | Philip Taron | 2025-08-06 | 2 | -1/+19 |
| |\ |
|
| | * | fetchFromBitbucket: url escape rev attr•••To make sure revision with spaces in them (most likely from repos that
were used with mercurial) as well as revisions with names containing url
encoded characters ("branch%20with%20encoded%spaces").
| Anton Tetov | 2025-05-24 | 1 | -2/+1 |
| | * | fetchFromBitbucket: add test, repro need for url escape•••Looking into #29733
| Anton Tetov | 2025-05-24 | 2 | -0/+19 |
| * | | lib, treewide: introduce `repoRevToName`, use it in most `fetch*` functions•••This patch adds `lib.repoRevToName` function that generalizes away most of the
code used for derivation name generation by `fetch*` functions (`fetchzip`,
`fetchFromGitHub`, etc, except those which are delayed until latter commits
for mass-rebuild reasons).
It's first argument controls how the resulting name will look (see below).
Since `lib` has no equivalent of Nixpkgs' `config`, this patch adds
`config.fetchedSourceNameDefault` option to Nixpkgs and then re-exposes
`lib.repoRevToName config.fetchedSourceNameDefault` expression as
`pkgs.repoRevToNameMaybe` which is then used in `fetch*` derivations.
The result is that different values of `config.fetchedSourceNameDefault` now
control how the `src` derivations produced by `fetch*` functions are to be
named, e.g.:
- `fetchedSourceNameDefault = "source"` (the default):
```
$ nix-instantiate -A fuse.src
/nix/store/<hash>-source.drv
```
- `fetchedSourceNameDefault = "versioned"`:
```
$ nix-instantiate -A fuse.src
/nix/store/<hash>-libfuse-2.9.9-source.drv
```
- `fetchedSourceNameDefault = "full"`:
```
$ nix-instantiate -A fuse.src
/nix/store/<hash>-libfuse-2.9.9-github-source.drv
```
See the documentation of `config.fetchedSourceNameDefault` for more info.
| Jan Malakhovski | 2025-05-31 | 1 | -2/+6 |
| |/ |
|
| * | 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 b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
| Silvan Mosberger | 2024-12-10 | 1 | -7/+22 |
| * | treewide: Make some fetchers overridable | piegames | 2023-04-22 | 1 | -1/+3 |
| * | fetchFromBitbucket: remove hack for Mercurial•••Bitbucket deleted all its Mercurial repositories, so presumably this
doesn't do anything any more.
| Alyssa Ross | 2021-02-08 | 1 | -1/+0 |
| * | all-packages: move fetch* to pkgs/build-support/ | Matthew Bauer | 2019-01-26 | 1 | -0/+10 |