nixd: add version and pkg-config testers
This commit is contained in:
parent
c1f5835e6b
commit
2eee5fcc2a
1 changed files with 11 additions and 0 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue