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";