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

View file

@ -15,6 +15,7 @@
, nix , nix
, nixpkgs-fmt , nixpkgs-fmt
, pkg-config , pkg-config
, testers
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
@ -80,6 +81,16 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = nix-update-script { }; passthru.updateScript = nix-update-script { };
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
};
pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
moduleNames = [ "libnixf" "libnixt" ];
};
};
meta = { meta = {
description = "Nix language server"; description = "Nix language server";
homepage = "https://github.com/nix-community/nixd"; homepage = "https://github.com/nix-community/nixd";