summary refs log tree commit diff
path: root/pkgs/applications/editors/nano
diff options
context:
space:
mode:
authorTim Steinbach <tim@nequissimus.com>2020-11-16 13:59:36 -0500
committerTim Steinbach <tim@nequissimus.com>2020-11-16 14:00:34 -0500
commit0338f728c01329427c407ccd0bf6e527eee2358c (patch)
tree3eef26cec0308fd09a1f929ba33e498aa53854a1 /pkgs/applications/editors/nano
parent701df1a3dc5b2a60ab348a3c06600250d0382457 (diff)
downloadnixpkgs-0338f728c01329427c407ccd0bf6e527eee2358c.tar
nixpkgs-0338f728c01329427c407ccd0bf6e527eee2358c.tar.gz
nixpkgs-0338f728c01329427c407ccd0bf6e527eee2358c.tar.bz2
nixpkgs-0338f728c01329427c407ccd0bf6e527eee2358c.tar.lz
nixpkgs-0338f728c01329427c407ccd0bf6e527eee2358c.tar.xz
nixpkgs-0338f728c01329427c407ccd0bf6e527eee2358c.tar.zst
nixpkgs-0338f728c01329427c407ccd0bf6e527eee2358c.zip
nano: Add test
Diffstat (limited to 'pkgs/applications/editors/nano')
-rw-r--r--pkgs/applications/editors/nano/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix
index 63b849f06f9..04bd6c7b4b8 100644
--- a/pkgs/applications/editors/nano/default.nix
+++ b/pkgs/applications/editors/nano/default.nix
@@ -1,6 +1,6 @@
 { stdenv, fetchurl, fetchFromGitHub, ncurses, texinfo, writeScript
-, common-updater-scripts, git, nix, nixfmt, coreutils, gnused, gettext ? null
-, enableNls ? true, enableTiny ? false }:
+, common-updater-scripts, git, nix, nixfmt, coreutils, gnused, nixosTests
+, gettext ? null, enableNls ? true, enableTiny ? false }:
 
 assert enableNls -> (gettext != null);
 
@@ -41,6 +41,8 @@ in stdenv.mkDerivation rec {
   enableParallelBuilding = true;
 
   passthru = {
+    tests = { inherit (nixosTests) nano; };
+
     updateScript = writeScript "update.sh" ''
       #!${stdenv.shell}
       set -o errexit
@@ -73,7 +75,7 @@ in stdenv.mkDerivation rec {
     homepage = "https://www.nano-editor.org/";
     description = "A small, user-friendly console text editor";
     license = licenses.gpl3Plus;
-    maintainers = with maintainers; [ joachifm ];
+    maintainers = with maintainers; [ joachifm nequissimus ];
     platforms = platforms.all;
   };
 }