aboutsummaryrefslogtreecommitdiff
path: root/pkgs/shvspy
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-11-22 16:16:45 +0100
committerKarel Kočí <cynerd@email.cz>2022-11-22 16:16:45 +0100
commite991b1bb26b8dafe32e525db69d492eb5947433e (patch)
tree196294c9de47bd2d95914b2eff85c3f4fcd6c609 /pkgs/shvspy
parentdc40da30011d035d5f554799976908a1f5e0653b (diff)
downloadnixos-personal-e991b1bb26b8dafe32e525db69d492eb5947433e.tar.gz
nixos-personal-e991b1bb26b8dafe32e525db69d492eb5947433e.tar.bz2
nixos-personal-e991b1bb26b8dafe32e525db69d492eb5947433e.zip
Add shvspy
Diffstat (limited to 'pkgs/shvspy')
-rw-r--r--pkgs/shvspy/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/shvspy/default.nix b/pkgs/shvspy/default.nix
new file mode 100644
index 0000000..495a2ec
--- /dev/null
+++ b/pkgs/shvspy/default.nix
@@ -0,0 +1,39 @@
+{ lib, stdenv, fetchFromGitHub
+, cmake, doctest, libsForQt5, qcoro
+, 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
+ ];
+
+ 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;
+ };
+}