about summary refs log tree commit diff
path: root/pkgs/applications/misc/khard
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2020-06-21 20:10:14 +0200
committerRobert Schütz <dev@schuetz-co.de>2020-06-21 20:10:14 +0200
commitf0e598bd849455a4ec3b38cfc5275e0b5c8e91b9 (patch)
treea8352de67f7b1c10cf29fe3c33191499fc69b983 /pkgs/applications/misc/khard
parent9480bae337095fd24f61380bce3174fdfe926a00 (diff)
khard: fix tests
Sandboxing causes the help to be displayed differently when the COLUMNS
variable is not set. See https://github.com/scheibler/khard/issues/263.
Diffstat (limited to 'pkgs/applications/misc/khard')
-rw-r--r--pkgs/applications/misc/khard/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/misc/khard/default.nix b/pkgs/applications/misc/khard/default.nix
index 8646b9864d9eb..98cd8a5a4fb01 100644
--- a/pkgs/applications/misc/khard/default.nix
+++ b/pkgs/applications/misc/khard/default.nix
@@ -22,6 +22,11 @@ python3.pkgs.buildPythonApplication rec {
     install -D misc/zsh/_khard $out/share/zsh/site-functions/_khard
   '';
 
+  preCheck = ''
+    # see https://github.com/scheibler/khard/issues/263
+    export COLUMNS=80
+  '';
+
   meta = {
     homepage = "https://github.com/scheibler/khard";
     description = "Console carddav client";