aboutsummaryrefslogtreecommitdiff
path: root/pkgs/hydralauncher/client.nix
blob: 35e114dc220979f6f9486faf254b99ac13b4ef8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ fetchFromGitHub
, python39
, ensureNewerSourcesHook
}:

python39.pkgs.buildPythonApplication rec {
  name = "hydralauncher-bittorrent-client";
  version = "2.0.2";
  
  src = fetchFromGitHub {
    repo = "hydra";
    owner = "hydralauncher";
    rev = "v${version}";
    sha256 = "1g1a03cay4vw32jl6jm94gfaf099q3ln1kcjy52g6z4r4qmjkgch";
  };

  format = "other";

  buildInputs = [
    (ensureNewerSourcesHook { year = "1980"; })
  ];
  
  propagatedBuildInputs = with python39.pkgs; [
    cx-freeze
    libtorrent-rasterbar
  ];

  buildPhase = ''
    python torrent-client/setup.py build
  '';
}