22 stdenv.mkDerivation rec {
23 pname = "torrenttools";
27 (fetchFromGitHub rec {
29 repo = "torrenttools";
31 hash = "sha256-3rAxw4JM5ruOn0ccKnpdCnUWUPTQOUvRYz8OKU/FpJ8=";
34 (fetchFromGitHub rec {
37 rev = "a887519e360e44c1ef88ea4ef7df652ea049c502";
38 hash = "sha256-nVvzez5GB57qSj2SLaxdYlkSX8rRM06H2NnLQGCDWMg=";
41 (fetchFromGitHub rec {
44 rev = "38ac810d6bb3628fd3ce49150c9fb641bb5e78cd";
45 hash = "sha256-0H9h0Hud0Fd64lY0pxQ96coDOEDr5wh8v1sNT1lBxb0=";
48 (fetchFromGitHub rec {
51 rev = "c53eec4efe0e163871d9eb54dc074c25cd01abf0";
52 hash = "sha256-0j78QtEkhlssVivPl709o5Pf36TzhOZ6VHaqDiH0L0I=";
56 sourceRoot = "torrenttools";
63 cp -pr cliprogress torrenttools/external/cliprogress
64 cp -pr dottorrent torrenttools/external/dottorrent
65 cp -pr termcontrol torrenttools/external/termcontrol
66 chmod -R u+w -- "$sourceRoot"
91 "-DTORRENTTOOLS_BUILD_TESTS:BOOL=ON"
92 "-DTORRENTTOOLS_TBB:BOOL=OFF" # Our TBB doesn't expose a CMake module.
98 description = "CLI tool for creating, inspecting and modifying BitTorrent metafiles";
99 homepage = "https://github.com/fbdtemme/torrenttools";
100 license = licenses.mit;
101 maintainers = with maintainers; [ azahi ];
102 platforms = platforms.unix;
103 mainProgram = "torrenttools";