From 2eee5fcc2a5f87bd7a75bdac7f4b436613c67bc4 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Mon, 22 Apr 2024 04:20:00 +0000 Subject: [PATCH] nixd: add version and pkg-config testers --- .../tools/language-servers/nixd/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/tools/language-servers/nixd/default.nix b/pkgs/development/tools/language-servers/nixd/default.nix index c4ba58dbe5cc..becdbd892a03 100644 --- a/pkgs/development/tools/language-servers/nixd/default.nix +++ b/pkgs/development/tools/language-servers/nixd/default.nix @@ -15,6 +15,7 @@ , nix , nixpkgs-fmt , pkg-config +, testers }: stdenv.mkDerivation (finalAttrs: { @@ -80,6 +81,16 @@ stdenv.mkDerivation (finalAttrs: { passthru.updateScript = nix-update-script { }; + passthru.tests = { + version = testers.testVersion { + package = finalAttrs.finalPackage; + }; + pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + moduleNames = [ "libnixf" "libnixt" ]; + }; + }; + meta = { description = "Nix language server"; homepage = "https://github.com/nix-community/nixd";