about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYongun Seong <nevivurn@nevi.dev>2023-05-20 06:13:45 +0900
committerYongun Seong <nevivurn@nevi.dev>2023-05-20 06:13:45 +0900
commit924f367c57665bce680cf37f716f22689dc8fcf3 (patch)
treeaa2a9b8dee029a27a3464f6fd0c56667640a560f
parent3be52dc1db62b926e7ad65dffec1901280e53cf3 (diff)
downloadnixlib-924f367c57665bce680cf37f716f22689dc8fcf3.tar
nixlib-924f367c57665bce680cf37f716f22689dc8fcf3.tar.gz
nixlib-924f367c57665bce680cf37f716f22689dc8fcf3.tar.bz2
nixlib-924f367c57665bce680cf37f716f22689dc8fcf3.tar.lz
nixlib-924f367c57665bce680cf37f716f22689dc8fcf3.tar.xz
nixlib-924f367c57665bce680cf37f716f22689dc8fcf3.tar.zst
nixlib-924f367c57665bce680cf37f716f22689dc8fcf3.zip
fcitx5: link to nixosTests.fcitx5
-rw-r--r--pkgs/tools/inputmethods/fcitx5/default.nix8
-rw-r--r--pkgs/tools/inputmethods/fcitx5/fcitx5-hangul.nix5
-rw-r--r--pkgs/tools/inputmethods/fcitx5/fcitx5-m17n.nix5
-rw-r--r--pkgs/tools/inputmethods/fcitx5/fcitx5-mozc.nix6
4 files changed, 22 insertions, 2 deletions
diff --git a/pkgs/tools/inputmethods/fcitx5/default.nix b/pkgs/tools/inputmethods/fcitx5/default.nix
index a4c5c6451228..8dd13bbd1674 100644
--- a/pkgs/tools/inputmethods/fcitx5/default.nix
+++ b/pkgs/tools/inputmethods/fcitx5/default.nix
@@ -31,6 +31,7 @@
 , xcbutilwm
 , xcb-imdkit
 , libxkbfile
+, nixosTests
 }:
 let
   enDictVer = "20121020";
@@ -89,7 +90,12 @@ stdenv.mkDerivation rec {
     libxkbfile
   ];
 
-  passthru.updateScript = ./update.py;
+  passthru = {
+    updateScript = ./update.py;
+    tests = {
+      inherit (nixosTests) fcitx5;
+    };
+  };
 
   meta = with lib; {
     description = "Next generation of fcitx";
diff --git a/pkgs/tools/inputmethods/fcitx5/fcitx5-hangul.nix b/pkgs/tools/inputmethods/fcitx5/fcitx5-hangul.nix
index bf97cab6ef14..18facb5fb31a 100644
--- a/pkgs/tools/inputmethods/fcitx5/fcitx5-hangul.nix
+++ b/pkgs/tools/inputmethods/fcitx5/fcitx5-hangul.nix
@@ -6,6 +6,7 @@
 , gettext
 , fcitx5
 , libhangul
+, nixosTests
 }:
 
 stdenv.mkDerivation rec {
@@ -30,6 +31,10 @@ stdenv.mkDerivation rec {
     libhangul
   ];
 
+  passthru.tests = {
+    inherit (nixosTests) fcitx5;
+  };
+
   meta = with lib; {
     description = "Hangul wrapper for Fcitx5";
     homepage = "https://github.com/fcitx/fcitx5-hangul";
diff --git a/pkgs/tools/inputmethods/fcitx5/fcitx5-m17n.nix b/pkgs/tools/inputmethods/fcitx5/fcitx5-m17n.nix
index 1a383a369c14..3c4bd06cb96f 100644
--- a/pkgs/tools/inputmethods/fcitx5/fcitx5-m17n.nix
+++ b/pkgs/tools/inputmethods/fcitx5/fcitx5-m17n.nix
@@ -9,6 +9,7 @@
 , m17n_db
 , gettext
 , fmt
+, nixosTests
 }:
 
 stdenv.mkDerivation rec {
@@ -36,6 +37,10 @@ stdenv.mkDerivation rec {
     fmt
   ];
 
+  passthru.tests = {
+    inherit (nixosTests) fcitx5;
+  };
+
   meta = with lib; {
     description = "m17n support for Fcitx5";
     homepage = "https://github.com/fcitx/fcitx5-m17n";
diff --git a/pkgs/tools/inputmethods/fcitx5/fcitx5-mozc.nix b/pkgs/tools/inputmethods/fcitx5/fcitx5-mozc.nix
index 92a0474ef199..dce5bd48592c 100644
--- a/pkgs/tools/inputmethods/fcitx5/fcitx5-mozc.nix
+++ b/pkgs/tools/inputmethods/fcitx5/fcitx5-mozc.nix
@@ -1,6 +1,6 @@
 { lib, clangStdenv, fetchFromGitHub, fetchurl, fetchpatch, fetchgit
 , python3Packages, ninja, pkg-config, protobuf, zinnia, qt5, fcitx5
-, jsoncpp, gtest, which, gtk2, unzip, abseil-cpp, breakpad }:
+, jsoncpp, gtest, which, gtk2, unzip, abseil-cpp, breakpad, nixosTests }:
 let
   inherit (python3Packages) python gyp six;
   utdic = fetchurl {
@@ -115,6 +115,10 @@ in clangStdenv.mkDerivation rec {
     wrapQtApp $out/lib/mozc/mozc_tool
   '';
 
+  passthru.tests = {
+    inherit (nixosTests) fcitx5;
+  };
+
   meta = with lib; {
     description = "Fcitx5 Module of A Japanese Input Method for Chromium OS, Windows, Mac and Linux (the Open Source Edition of Google Japanese Input)";
     homepage = "https://github.com/fcitx/mozc";