libxkbcommon: add tests for pkg-config modules
This commit is contained in:
parent
51c7525a64
commit
81bf7630b9
1 changed files with 11 additions and 4 deletions
|
@ -17,14 +17,15 @@
|
|||
, wayland
|
||||
, wayland-protocols
|
||||
, wayland-scanner
|
||||
, testers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libxkbcommon";
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://xkbcommon.org/download/${pname}-${version}.tar.xz";
|
||||
url = with finalAttrs; "https://xkbcommon.org/download/${pname}-${version}.tar.xz";
|
||||
sha256 = "sha256-Vg8RxLu8oQ9JXz7306aqTKYrT4+wtS59RZ0Yom5G4Bc=";
|
||||
};
|
||||
|
||||
|
@ -49,6 +50,12 @@ stdenv.mkDerivation rec {
|
|||
patchShebangs ../test/
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests.pkg-config = testers.hasPkgConfigModules {
|
||||
package = finalAttrs.finalPackage;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library to handle keyboard descriptions";
|
||||
longDescription = ''
|
||||
|
@ -58,7 +65,7 @@ stdenv.mkDerivation rec {
|
|||
and dead keys.
|
||||
''; # and a separate library for listing available keyboard layouts.
|
||||
homepage = "https://xkbcommon.org";
|
||||
changelog = "https://github.com/xkbcommon/libxkbcommon/blob/xkbcommon-${version}/NEWS";
|
||||
changelog = "https://github.com/xkbcommon/libxkbcommon/blob/xkbcommon-${finalAttrs.version}/NEWS";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ primeos ttuegel ];
|
||||
mainProgram = "xkbcli";
|
||||
|
@ -69,4 +76,4 @@ stdenv.mkDerivation rec {
|
|||
"xkbregistry"
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue