2018-06-14 21:47:13 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, intltool, libtorrentRasterbar, pythonPackages }:
|
|
|
|
|
2017-08-05 22:13:26 +01:00
|
|
|
pythonPackages.buildPythonPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "deluge";
|
2017-08-05 22:13:26 +01:00
|
|
|
version = "1.3.15";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://download.deluge-torrent.org/source/${pname}-${version}.tar.bz2";
|
2017-08-05 22:13:26 +01:00
|
|
|
sha256 = "1467b9hmgw59gf398mhbf40ggaka948yz3afh6022v753c9j7y6w";
|
|
|
|
};
|
|
|
|
|
2018-06-14 21:47:13 +01:00
|
|
|
patches = [
|
|
|
|
# Fix preferences when built against libtorrent >=0.16
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://git.deluge-torrent.org/deluge/patch/?id=38d7b7cdfde3c50d6263602ffb03af92fcbfa52e";
|
|
|
|
sha256 = "0la3i0lkj6yv4725h4kbd07mhfwcb34w7prjl9gxg12q7px6c31d";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-08-05 22:13:26 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2018-08-06 23:47:42 +01:00
|
|
|
pyGtkGlade twisted Mako chardet pyxdg pyopenssl service-identity
|
2019-09-11 08:06:35 +01:00
|
|
|
libtorrentRasterbar.dev libtorrentRasterbar.python setuptools
|
2017-08-05 22:13:26 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ intltool ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp -R deluge/data/pixmaps $out/share/
|
|
|
|
cp -R deluge/data/icons $out/share/
|
|
|
|
cp deluge/data/share/applications/deluge.desktop $out/share/applications
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-06-27 21:12:57 +01:00
|
|
|
homepage = https://deluge-torrent.org;
|
2017-08-05 22:13:26 +01:00
|
|
|
description = "Torrent client";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ domenkozar ebzzry ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|