diff options
author | Anthony Roussel <anthony@roussel.dev> | 2023-10-10 16:14:22 +0200 |
---|---|---|
committer | Anthony Roussel <anthony@roussel.dev> | 2023-10-10 16:45:18 +0200 |
commit | 37dfe0147f05f086d75eb40c09b02f51037f1868 (patch) | |
tree | a382c38bd915aa3643f128698203e3f208f70cba /pkgs/servers/search | |
parent | d7e3b25dea27131def18db3b65930ec760e3c9a4 (diff) |
sonic-server: add passthru.tests and passthru.updateScript
Diffstat (limited to 'pkgs/servers/search')
-rw-r--r-- | pkgs/servers/search/sonic-server/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/servers/search/sonic-server/default.nix b/pkgs/servers/search/sonic-server/default.nix index 4b4d103f2f55c..f5310d7e7f408 100644 --- a/pkgs/servers/search/sonic-server/default.nix +++ b/pkgs/servers/search/sonic-server/default.nix @@ -1,6 +1,9 @@ { lib , rustPlatform , fetchFromGitHub +, nix-update-script +, testers +, sonic-server }: rustPlatform.buildRustPackage rec { @@ -37,12 +40,23 @@ rustPlatform.buildRustPackage rec { --replace /etc/sonic.cfg $out/etc/sonic/config.cfg ''; + passthru = { + tests = { + version = testers.testVersion { + command = "sonic --version"; + package = sonic-server; + }; + }; + updateScript = nix-update-script { }; + }; + meta = with lib; { description = "Fast, lightweight and schema-less search backend"; homepage = "https://github.com/valeriansaliou/sonic"; changelog = "https://github.com/valeriansaliou/sonic/releases/tag/v${version}"; license = licenses.mpl20; platforms = platforms.unix; + mainProgram = "sonic"; maintainers = with maintainers; [ pleshevskiy ]; }; } |