diff --git a/pkgs/by-name/nb/nb/package.nix b/pkgs/by-name/nb/nb/package.nix index 9d0b06910433..44239528ccd4 100644 --- a/pkgs/by-name/nb/nb/package.nix +++ b/pkgs/by-name/nb/nb/package.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, installShellFiles }: +{ stdenv, lib, fetchFromGitHub, installShellFiles, testers, nix-update-script, nb }: stdenv.mkDerivation rec { pname = "nb"; @@ -25,6 +25,15 @@ stdenv.mkDerivation rec { installShellCompletion --cmd nb etc/nb-completion.{bash,zsh,fish} ''; + passthru = { + tests.version = testers.testVersion { + package = nb; + # Setting EDITOR to avoid: "Command line text editor not found" + command = "EDITOR=nano nb --version"; + }; + updateScript = nix-update-script { }; + }; + meta = with lib; { description = "Command line note-taking, bookmarking, archiving, and knowledge base application"; longDescription = ''