nb: add passthru.tests.version and updateScript (#356342)
This commit is contained in:
commit
63863a8847
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, installShellFiles }:
|
{ stdenv, lib, fetchFromGitHub, installShellFiles, testers, nix-update-script, nb }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nb";
|
pname = "nb";
|
||||||
@ -25,6 +25,15 @@ stdenv.mkDerivation rec {
|
|||||||
installShellCompletion --cmd nb etc/nb-completion.{bash,zsh,fish}
|
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; {
|
meta = with lib; {
|
||||||
description = "Command line note-taking, bookmarking, archiving, and knowledge base application";
|
description = "Command line note-taking, bookmarking, archiving, and knowledge base application";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user