libwacom: run tests
This commit is contained in:
parent
f254f935b0
commit
b9a585ebd3
1 changed files with 16 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
, udev
|
||||
, libgudev
|
||||
, python3
|
||||
, valgrind
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -23,6 +24,10 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-9zqW6zPrFcxv/yAAtFgdVavKVMXeDBoMP3E/XriUcT0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs test/check-files-in-git.sh
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
meson
|
||||
|
@ -36,10 +41,20 @@ stdenv.mkDerivation rec {
|
|||
libgudev
|
||||
];
|
||||
|
||||
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
||||
|
||||
mesonFlags = [
|
||||
"-Dtests=disabled"
|
||||
"-Dtests=${if doCheck then "enabled" else "disabled"}"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
valgrind
|
||||
] ++ (with python3.pkgs; [
|
||||
libevdev
|
||||
pytest
|
||||
pyudev
|
||||
]);
|
||||
|
||||
meta = with lib; {
|
||||
platforms = platforms.linux;
|
||||
homepage = "https://linuxwacom.github.io/";
|
||||
|
|
Loading…
Reference in a new issue