about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/admin/proxmove/default.nix
blob: 21055de12b6c701191fc724d28c2cbf74b83e670 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "proxmove";
  version = "1.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "ossobv";
    repo = "proxmove";
    rev = "v${version}";
    hash = "sha256-8xzsmQsogoMrdpf8+mVZRWPGQt9BO0dBT0aKt7ygUe4=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    proxmoxer
  ];

  preBuild = ''
    rm -R assets
    rm -R artwork
  '';

  checkPhase = ''
    runHook preCheck

    $out/bin/${pname} --version

    runHook postCheck
  '';

  meta = with lib; {
    description = "The Proxmox VM migrator: migrates VMs between different Proxmox VE clusters";
    mainProgram = "proxmove";
    homepage = "https://github.com/ossobv/proxmove";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ AngryAnt ];
  };
}