aboutsummaryrefslogtreecommitdiff
path: root/pkgs/shvspy/default.nix
blob: edc0bd4d55c2c5bc40b67a6fe187553a32ed37f4 (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
32
33
34
35
36
37
38
39
{ lib, stdenv, fetchFromGitHub
, cmake, doctest, libsForQt5, qcoro_task_exception_handling
, makeDesktopItem, copyDesktopItems
}:
with libsForQt5; 

stdenv.mkDerivation rec {
  name = "shvspy";

  src = fetchFromGitHub {
    owner = "silicon-heaven";
    repo = "shvspy";
    rev = "a922e963bf7884164fe2b124a7a4366f7fc802a3";
    sha256 = "ExA+sFlkxFKXk69DKoGzKm80ypiNFwN281MwZkMgaVY=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [
    cmake doctest wrapQtAppsHook copyDesktopItems
  ];
  buildInputs = [
    qtbase qtserialport qtwebsockets doctest qcoro_task_exception_handling
  ];

  desktopItems = [
    (makeDesktopItem {
      name = "shvspy";
      exec = "shvspy";
      desktopName = "SHVSpy";
      categories = [ "Network" "RemoteAccess" ];
    })
  ];

  meta = with lib; {
    description = "Console version of Stardict program";
    homepage = "https://dushistov.github.io/sdcv/";
    license = licenses.gpl2;
  };
}