21 stdenv.mkDerivation rec {
22 pname = "torrenttools";
26 (fetchFromGitHub rec {
28 repo = "torrenttools";
30 hash = "sha256-3rAxw4JM5ruOn0ccKnpdCnUWUPTQOUvRYz8OKU/FpJ8=";
33 (fetchFromGitHub rec {
36 rev = "a887519e360e44c1ef88ea4ef7df652ea049c502";
37 hash = "sha256-nVvzez5GB57qSj2SLaxdYlkSX8rRM06H2NnLQGCDWMg=";
40 (fetchFromGitHub rec {
43 rev = "38ac810d6bb3628fd3ce49150c9fb641bb5e78cd";
44 hash = "sha256-0H9h0Hud0Fd64lY0pxQ96coDOEDr5wh8v1sNT1lBxb0=";
47 (fetchFromGitHub rec {
50 rev = "c53eec4efe0e163871d9eb54dc074c25cd01abf0";
51 hash = "sha256-0j78QtEkhlssVivPl709o5Pf36TzhOZ6VHaqDiH0L0I=";
55 sourceRoot = "torrenttools";
58 cp -pr cliprogress torrenttools/external/cliprogress
59 cp -pr dottorrent torrenttools/external/dottorrent
60 cp -pr termcontrol torrenttools/external/termcontrol
61 chmod -R u+w -- "$sourceRoot"
86 "-DTORRENTTOOLS_BUILD_TESTS:BOOL=ON"
87 "-DTORRENTTOOLS_TBB:BOOL=OFF" # Our TBB doesn't expose a CMake module.
93 description = "A CLI tool for creating, inspecting and modifying BitTorrent metafiles";
94 homepage = "https://github.com/fbdtemme/torrenttools";
95 license = licenses.mit;
96 maintainers = with maintainers; [ azahi ];
97 platforms = platforms.unix;