nixd: add version and pkg-config testers

This commit is contained in:
Mario Rodas 2024-04-22 04:20:00 +00:00 committed by Adam Stephens
parent c1f5835e6b
commit 2eee5fcc2a
No known key found for this signature in database
1 changed files with 11 additions and 0 deletions

View File

@ -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";