summary refs log tree commit diff
path: root/nixos/tests/fcitx/default.nix
diff options
context:
space:
mode:
author_ <a@b.co>2020-08-26 22:27:26 +0530
committer_ <a@b.co>2020-08-26 22:41:23 +0530
commit4c8a8800d3fc49f0f2f04b1b6200173dec10d8a6 (patch)
treef1746f64c76923caadf2ec52843e9fb9fe80a79e /nixos/tests/fcitx/default.nix
parent10ffa340b7fab53a3cf04359d1b22cc077e541b2 (diff)
downloadnixpkgs-4c8a8800d3fc49f0f2f04b1b6200173dec10d8a6.tar
nixpkgs-4c8a8800d3fc49f0f2f04b1b6200173dec10d8a6.tar.gz
nixpkgs-4c8a8800d3fc49f0f2f04b1b6200173dec10d8a6.tar.bz2
nixpkgs-4c8a8800d3fc49f0f2f04b1b6200173dec10d8a6.tar.lz
nixpkgs-4c8a8800d3fc49f0f2f04b1b6200173dec10d8a6.tar.xz
nixpkgs-4c8a8800d3fc49f0f2f04b1b6200173dec10d8a6.tar.zst
nixpkgs-4c8a8800d3fc49f0f2f04b1b6200173dec10d8a6.zip
Copy config file, no via-store, short config
Diffstat (limited to 'nixos/tests/fcitx/default.nix')
-rw-r--r--nixos/tests/fcitx/default.nix16
1 files changed, 2 insertions, 14 deletions
diff --git a/nixos/tests/fcitx/default.nix b/nixos/tests/fcitx/default.nix
index 7c53d42fae4..d28a5801f97 100644
--- a/nixos/tests/fcitx/default.nix
+++ b/nixos/tests/fcitx/default.nix
@@ -3,18 +3,6 @@ import ../make-test-python.nix (
     pkgs, ...
   }: 
     # copy_from_host works only for store paths
-    let 
-      fcitx_profile_file_host = pkgs.writeTextFile { 
-        name = "fcitx_profile";
-        text = builtins.readFile ./profile;
-      };
-      
-      fcitx_config_file_host = pkgs.writeTextFile { 
-        name = "fcitx_config";
-        text = builtins.readFile ./config;
-      };
-    in
-
     rec {
         name = "fcitx";
         machine = 
@@ -77,11 +65,11 @@ import ../make-test-python.nix (
             # Point and click would be expensive,
             # So configure using files
             machine.copy_from_host(
-                "${fcitx_profile_file_host}",
+                "${./profile}",
                 "${fcitx_confdir}/profile",
             )
             machine.copy_from_host(
-                "${fcitx_config_file_host}",
+                "${./config}",
                 "${fcitx_confdir}/config",
             )