summaryrefslogtreecommitdiff
path: root/pkgs/build-support/fetchbitbucket (follow)
Commit message (Expand)AuthorAgeFilesLines
* fetchFromBitbucket: modify tests for `fetchgit` backendJasi2025-10-051-2/+11
* fetchFromBitbucket: implement fetchgit codepath•••This allows `fetchFromBitbucket` to interface with `fetchgit` if git-related arguments are given. Jasi2025-10-051-12/+93
* fetchFromBitbucket: url escape rev (#386460)Philip Taron2025-08-062-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 Tetov2025-05-241-2/+1
| * fetchFromBitbucket: add test, repro need for url escape•••Looking into #29733 Anton Tetov2025-05-242-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 Malakhovski2025-05-311-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 Mosberger2024-12-101-7/+22
* treewide: Make some fetchers overridablepiegames2023-04-221-1/+3
* fetchFromBitbucket: remove hack for Mercurial•••Bitbucket deleted all its Mercurial repositories, so presumably this doesn't do anything any more. Alyssa Ross2021-02-081-1/+0
* all-packages: move fetch* to pkgs/build-support/Matthew Bauer2019-01-261-0/+10