summaryrefslogtreecommitdiff
path: root/pkgs/build-support/fetchsourcehut (follow)
Commit message (Expand)AuthorAgeFilesLines
* fetchFromSourcehut: allow passthru argswinston2025-09-091-1/+1
* fetchFromSourcehut: add tag as an alternative for rev•••This is just for consistency with fetchFromGitHub and fetchFromGitLab since the URLs used are the same. Signed-off-by: Marcin Serwin <marcin@serwin.dev> Marcin Serwin2025-07-291-5/+14
* treewide: run nixfmt 1.0.0Wolfgang Walther2025-07-241-13/+12
* 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/+3
* 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-45/+71
* Avoid top-level `with ...;` in pkgs/build-support/fetchsourcehut/default.nixPhilip Taron2024-03-191-4/+10
* fetchFromSourcehut: expose `gitRepoUrl` to consumers•••notable consumers include `unstableGitUpdater`. other git-like fetchers (`fetchFromGitHub`) already do this. Colin2023-06-111-1/+5
* treewide: Make some fetchers overridablepiegames2023-04-221-0/+2
* treewide: extraPostFetch -> postFetchArtturin2022-05-231-1/+1
* fetchFromSourcehut: allow recursive fetchingNguyễn Gia Phong2022-01-031-10/+35
* fetchFromSourcehut: initluc65r2021-03-081-0/+25