Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / rustdesk-server / default.nix
blob247d707a9c9da5172f2da02ad3f53984f25d323b
1 { stdenv
2 , lib
3 , rustPlatform
4 , fetchFromGitHub
5 , pkg-config
6 , libsodium
7 , Security
8 , sqlite
9 , nix-update-script
10 , testers
11 , rustdesk-server
14 rustPlatform.buildRustPackage rec {
15   pname = "rustdesk-server";
16   version = "1.1.11";
18   src = fetchFromGitHub {
19     owner = "rustdesk";
20     repo = "rustdesk-server";
21     rev = version;
22     hash = "sha256-wGV7Fsil26qs0BYI8G5pVJDvJvNIyrd/yaIJaGAodpw=";
23   };
25   cargoLock = {
26     lockFile = ./Cargo.lock;
27     outputHashes = {
28       "async-speed-limit-0.3.1" = "sha256-iOel6XA07RPrBjQAFLnxXX4VBpDrYZaqQc9clnsOorI=";
29       "confy-0.4.0" = "sha256-e91cvEixhpPzIthAxzTa3fDY6eCsHUy/eZQAqs7QTDo=";
30       "tokio-socks-0.5.1" = "sha256-inmAJk0fAlsVNIwfD/M+htwIdQHwGSTRrEy6N/mspMI=";
31     };
32   };
34   nativeBuildInputs = [
35     pkg-config
36   ];
38   buildInputs = [
39     libsodium
40     sqlite
41   ] ++ lib.optionals stdenv.isDarwin [
42     Security
43   ];
45   passthru = {
46     updateScript = nix-update-script { };
47     tests.version = testers.testVersion {
48       inherit version;
49       package = rustdesk-server;
50       command = "hbbr --version";
51     };
52   };
54   meta = with lib; {
55     description = "RustDesk Server Program";
56     homepage = "https://github.com/rustdesk/rustdesk-server";
57     changelog = "https://github.com/rustdesk/rustdesk-server/releases/tag/${version}";
58     license = licenses.agpl3Only;
59     platforms = platforms.unix;
60     maintainers = with maintainers; [ gaelreyrol tjni ];
61   };