summaryrefslogtreecommitdiff
path: root/pkgs/build-support/fetchtorrent (follow)
Commit message (Expand)AuthorAgeFilesLines
* treewide: apply nixfmt 1.2.0Dyego Aurélio2026-01-221-1/+1
* tests.fetchtorrent: don't run these tests on Hydra, take 2•••As reported in https://github.com/NixOS/nixpkgs/pull/464999#issuecomment-3593574707, I landed this on the wrong attrset and didn't check it. Now validated with `nix-instantiate --strict --json --eval -A tests.fetchtorrent.http-link.meta.hydraPlatforms` Philip Taron2025-12-031-8/+13
* tests.fetchtorrent: don't run these tests on HydraPhilip Taron2025-11-251-0/+5
* tests.fetchtorrent: avoid builtins.convertHash•••This function wasn't added until Nix 2.19, so we shouldn't (yet) be relying on it. Adam Dinwoodie2025-11-121-11/+1
* tests.fetchtorrent: verify and delete in postFetch (#458193)Robert Hensing2025-11-093-25/+76
|\
| * tests.fetchtorrent: store torrent file locally•••Avoid being unnecessarily dependent on webtorrent.io being available. Adam Dinwoodie2025-11-082-1/+1
| * tests.fetchtorrent: verify and delete in postFetch•••The Sintel torrent used for testing fetchtorrent is about 124MB, which is downloaded and cached for every test every time the test inputs change. Avoid that by instead validating the file hashes in the postFetch stage, then deleting the downloaded files, so the only thing that needs to be stored is an empty directory. Adam Dinwoodie2025-11-032-24/+75
* | fetchtorrent: use Transmission 4•••I don’t know why setting `--config-dir` breaks the finish script with Transmission 4, but I don’t really feel like spending more time investigating than I already did. It does still respect the passed settings, since we were passing the default location anyway. Emily2025-10-281-3/+2
|/
* fetchtorrent: add flatten argument for rqbit•••Currently, the output from fetchtorrent will be different depending on whether the default "transmission" backend or the "rqbit" backend is used, because "rqbit" changed its behaviour in v6.0.0 to create subdirectories. Restore the old behaviour for the rqbit backend of flattening the directory structure, but add a "flatten" argument to allow users to explicitly request the behaviour without this change. Because fetchtorrent produces fixed-output derivations, it's possible that people won't notice the changes in behaviour here, so add a warning that the behaviour might be unexpected (in either direction!) if the flatten argument isn't specified for the rqbit backend, and -- to avoid needing to support it indefinitely -- a warning that `flatten = false` will be deprecated in future. Update the fetchtorrent tests to check all the relevant combinations, and to mark all tests as now working. Update the release notes to advertise this breaking change. Fixes #432001. Adam Dinwoodie2025-08-092-26/+133
* fetchtorrent: check JSON config usage correctly•••The arguments to `fetchtorrent` are supposed to throw an error if the user attempts to specify JSON configuration when they're not using the transmission backend, however a logic error means the error will never be thrown. Move the test to somewhere where the behaviour will actually be checked. Adam Dinwoodie2025-08-091-5/+4
* fetchtorrent: run hooks when using rqbit•••The postFetch and postUnpack hooks ought to be run in fetchtorrent regardless of the backend in use. Ensure that's the case, rather than only running them if the transmission backend is being used. Adam Dinwoodie2025-08-091-2/+11
* fetchtorrent: test using Sintel torrent•••The current torrent used for testing fetchtorrent isn't free, which prevents the tests running in a lot of environments. Swap for a torrent of the Sintel film, which has a free license. This unfortunately increases the closure size of the tests: Sintel is 124MB, compared to 54MB for the Wired CD. This was the smallest torrent I could find that both had a free license and was sufficiently well seeded to be useful for testing. Adam Dinwoodie2025-08-081-29/+36
* fetchtorrent: record rqbit tests as broken•••See #432001 Adam Dinwoodie2025-08-081-2/+6
* treewide: run nixfmt 1.0.0Wolfgang Walther2025-07-241-10/+11
* 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-43/+71
* treewide: remove unused lib (and other) argumentsSigmanificient2024-07-261-1/+1
* transmission_3: rename from transmissionDoron Behar2024-06-211-2/+2
* tests.fetchtorrent: add watched-cd license•••This marks the tests unfree, shuold be fixed in a follow up. Peder Bergebakken Sundt2023-12-021-2/+24
* fetchtorrent: add `meta` supportPeder Bergebakken Sundt2023-12-021-0/+2
* fetchFromBittorrent: Rename to fetchtorrentEirik Wittersø2023-10-282-0/+85