otadump: init at 0.1.2 (#329129)
[NixPkgs.git] / pkgs / servers / rustdesk-server / default.nix
blob11aae268c537b9972097f7805101edcbc47e7208
2   stdenv,
3   lib,
4   rustPlatform,
5   fetchFromGitHub,
6   pkg-config,
7   libsodium,
8   Security,
9   sqlite,
10   nix-update-script,
11   testers,
12   rustdesk-server,
15 rustPlatform.buildRustPackage rec {
16   pname = "rustdesk-server";
17   version = "1.1.12";
19   src = fetchFromGitHub {
20     owner = "rustdesk";
21     repo = "rustdesk-server";
22     rev = version;
23     hash = "sha256-5QyrI3KLZZcQpudYqghrotLrLjSOhdDFR5eqnJC/0fU=";
24   };
26   cargoLock = {
27     lockFile = ./Cargo.lock;
28     outputHashes = {
29       "async-speed-limit-0.3.1" = "sha256-iOel6XA07RPrBjQAFLnxXX4VBpDrYZaqQc9clnsOorI=";
30       "confy-0.4.0" = "sha256-e91cvEixhpPzIthAxzTa3fDY6eCsHUy/eZQAqs7QTDo=";
31       "tokio-socks-0.5.1" = "sha256-inmAJk0fAlsVNIwfD/M+htwIdQHwGSTRrEy6N/mspMI=";
32     };
33   };
35   nativeBuildInputs = [
36     pkg-config
37   ];
39   buildInputs =
40     [
41       libsodium
42       sqlite
43     ]
44     ++ lib.optionals stdenv.hostPlatform.isDarwin [
45       Security
46     ];
48   passthru = {
49     updateScript = nix-update-script { };
50     tests.version = testers.testVersion {
51       inherit version;
52       package = rustdesk-server;
53       command = "hbbr --version";
54     };
55   };
57   meta = with lib; {
58     description = "RustDesk Server Program";
59     homepage = "https://github.com/rustdesk/rustdesk-server";
60     changelog = "https://github.com/rustdesk/rustdesk-server/releases/tag/${version}";
61     license = licenses.agpl3Only;
62     platforms = platforms.unix;
63     maintainers = with maintainers; [
64       gaelreyrol
65       tjni
66     ];
67   };