nb: add passthru.tests.version
This commit is contained in:
parent
2867f69e5c
commit
4de62b4c0f
@ -1,4 +1,4 @@
|
||||
{ stdenv, lib, fetchFromGitHub, installShellFiles }:
|
||||
{ stdenv, lib, fetchFromGitHub, installShellFiles, testers, nb }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nb";
|
||||
@ -25,6 +25,14 @@ 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";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command line note-taking, bookmarking, archiving, and knowledge base application";
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user