mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, fetchpatch, intltool, libtorrent-rasterbar, pythonPackages }:
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
pname = "deluge";
|
|
version = "1.3.15";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.deluge-torrent.org/source/${pname}-${version}.tar.bz2";
|
|
sha256 = "1467b9hmgw59gf398mhbf40ggaka948yz3afh6022v753c9j7y6w";
|
|
};
|
|
|
|
patches = [
|
|
# Fix preferences when built against libtorrent >=0.16
|
|
(fetchpatch {
|
|
url = "https://git.deluge-torrent.org/deluge/patch/?id=38d7b7cdfde3c50d6263602ffb03af92fcbfa52e";
|
|
sha256 = "0la3i0lkj6yv4725h4kbd07mhfwcb34w7prjl9gxg12q7px6c31d";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
pyGtkGlade twisted Mako chardet pyxdg pyopenssl service-identity
|
|
libtorrent-rasterbar.dev libtorrent-rasterbar.python setuptools
|
|
];
|
|
|
|
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 lib; {
|
|
homepage = "https://deluge-torrent.org";
|
|
description = "Torrent client";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ domenkozar ebzzry ];
|
|
broken = stdenv.isDarwin;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|