2021-01-15 05:42:41 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
2015-01-12 20:31:26 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2018-11-04 23:48:53 +00:00
|
|
|
version = "3.3.2";
|
|
|
|
pname = "enhanced-ctorrent-dhn";
|
2018-04-22 21:42:20 +00:00
|
|
|
|
2015-01-12 20:31:26 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.rahul.net/dholmes/ctorrent/ctorrent-dnh3.3.2.tar.gz";
|
|
|
|
sha256 = "0qs8waqwllk56i3yy3zhncy7nsnhmf09a494p5siz4vm2k4ncwy8";
|
|
|
|
};
|
|
|
|
|
2018-04-22 21:42:20 +00:00
|
|
|
# These patches come from Debian and fix CVE-2009-1759.
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/c/ctorrent/1.3.4.dnh3.3.2-5/debian/patches/cve-security-fix.diff";
|
|
|
|
sha256 = "1qkzzm8sfspbcs10azmmif4qcr7pr8r38dsa2py84lsjm1yi3kls";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/c/ctorrent/1.3.4.dnh3.3.2-5/debian/patches/FTBFS-fix.diff";
|
|
|
|
sha256 = "1m3zh96xwqjjzsbg62f7kx0miams58nys1f484qhdn870b5x9p06";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-01-12 20:31:26 +00:00
|
|
|
meta = {
|
2022-05-28 13:28:44 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2015-01-12 20:31:26 +00:00
|
|
|
description = "BitTorrent client written in C++";
|
|
|
|
longDescription = ''
|
|
|
|
CTorrent, a BitTorrent client implemented in C++, with bugfixes and
|
|
|
|
performance enhancements.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.rahul.net/dholmes/ctorrent/";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.devhell ];
|
2015-01-12 20:31:26 +00:00
|
|
|
};
|
|
|
|
}
|