From a6c939c52ad47de444d0cbdd36da3dbb6593ea8a Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Fri, 14 Mar 2025 18:20:00 +0100 Subject: [PATCH] hdr10plus_tool: enable package tests --- pkgs/by-name/hd/hdr10plus_tool/package.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/hd/hdr10plus_tool/package.nix b/pkgs/by-name/hd/hdr10plus_tool/package.nix index ae71c8c8f277..784525fad02a 100644 --- a/pkgs/by-name/hd/hdr10plus_tool/package.nix +++ b/pkgs/by-name/hd/hdr10plus_tool/package.nix @@ -4,6 +4,7 @@ rustPlatform, pkg-config, fontconfig, + writableTmpDirAsHomeHook, nix-update-script, }: @@ -25,12 +26,15 @@ rustPlatform.buildRustPackage rec { buildInputs = [ fontconfig ]; + nativeCheckInputs = [ writableTmpDirAsHomeHook ]; + preCheck = '' + export FONTCONFIG_FILE="${fontconfig.out}/etc/fonts/fonts.conf"; + ''; + passthru = { updateScript = nix-update-script { }; }; - doCheck = false; - meta = with lib; { description = "CLI utility to work with HDR10+ in HEVC files."; homepage = "https://github.com/quietvoid/hdr10plus_tool";