gst-thumbnailers: enable tests
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
fontconfig,
|
||||
libglycin,
|
||||
glycin-loaders,
|
||||
writableTmpDirAsHomeHook,
|
||||
shared-mime-info,
|
||||
callPackage,
|
||||
nix-update-script,
|
||||
}:
|
||||
@@ -54,6 +56,21 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
glycin-loaders
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
nativeCheckInputs = [
|
||||
# fontconfig tries to write to `~/.cache/fontconfig`
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
# Fix missing glycin loaders (glycin-loaders) and incorrectly detected
|
||||
# MIME types (shared-mime-info).
|
||||
preCheck = ''
|
||||
export XDG_DATA_DIRS=${glycin-loaders}/share:${shared-mime-info}/share:$XDG_DATA_DIRS
|
||||
'';
|
||||
|
||||
mesonCheckFlags = [ "-v" ];
|
||||
|
||||
passthru = {
|
||||
tests.thumbnailers = callPackage ./tests.nix { };
|
||||
updateScript = nix-update-script { };
|
||||
|
||||
Reference in New Issue
Block a user