tests.fetchtorrent: add watched-cd license

This marks the tests unfree, shuold be fixed in a follow up.

+24 -2
+24 -2
pkgs/build-support/fetchtorrent/tests.nix
··· 1 - { testers, fetchtorrent, ... }: 1 + { testers, fetchtorrent, lib, ... }: 2 + 3 + let 4 + wired-cd.meta.license = [ 5 + # track 1, 4 and 11 6 + { 7 + spdxID = "CC NC-SAMPLING+ 1.0 Deed"; 8 + fullName = "NonCommercial Sampling Plus 1.0 Generic"; 9 + url = "https://creativecommons.org/licenses/nc-sampling+/1.0/"; 10 + free = false; # for noncommercial purposes only 11 + } 12 + # the rest 13 + { 14 + spdxID = "CC SAMPLING+ 1.0 Deed"; 15 + fullName = "Sampling Plus 1.0 Generic"; 16 + url = "https://creativecommons.org/licenses/sampling+/1.0/"; 17 + free = true; # no use in advertisement 18 + } 19 + ]; 20 + in 2 21 3 22 { 4 23 http-link = testers.invalidateFetcherByDrvHash fetchtorrent { 5 24 url = "https://webtorrent.io/torrents/wired-cd.torrent"; 6 25 hash = "sha256-OCsC22WuanqoN6lPv5wDT5ZxPcEHDpZ1EgXGvz1SDYo="; 7 26 backend = "transmission"; 27 + inherit (wired-cd) meta; 8 28 }; 9 29 magnet-link = testers.invalidateFetcherByDrvHash fetchtorrent { 10 30 url = "magnet:?xt=urn:btih:a88fda5954e89178c372716a6a78b8180ed4dad3&dn=The+WIRED+CD+-+Rip.+Sample.+Mash.+Share&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fwired-cd.torrent"; 11 31 hash = "sha256-OCsC22WuanqoN6lPv5wDT5ZxPcEHDpZ1EgXGvz1SDYo="; 12 32 backend = "transmission"; 33 + inherit (wired-cd) meta; 13 34 }; 14 35 http-link-rqbit = testers.invalidateFetcherByDrvHash fetchtorrent { 15 36 url = "https://webtorrent.io/torrents/wired-cd.torrent"; 16 37 hash = "sha256-OCsC22WuanqoN6lPv5wDT5ZxPcEHDpZ1EgXGvz1SDYo="; 17 38 backend = "rqbit"; 39 + inherit (wired-cd) meta; 18 40 }; 19 41 magnet-link-rqbit = testers.invalidateFetcherByDrvHash fetchtorrent { 20 42 url = "magnet:?xt=urn:btih:a88fda5954e89178c372716a6a78b8180ed4dad3&dn=The+WIRED+CD+-+Rip.+Sample.+Mash.+Share&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fwired-cd.torrent"; 21 43 hash = "sha256-OCsC22WuanqoN6lPv5wDT5ZxPcEHDpZ1EgXGvz1SDYo="; 22 44 backend = "rqbit"; 45 + inherit (wired-cd) meta; 23 46 }; 24 47 } 25 -