From 214188ecff138abe133ded41cb25a01340e300bd Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 14 Feb 2025 14:25:34 +0100 Subject: [PATCH] fwupd: use writableTmpDirAsHomeHook --- pkgs/by-name/fw/fwupd/package.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/fw/fwupd/package.nix b/pkgs/by-name/fw/fwupd/package.nix index a0c065d029c2..280e1dfccc85 100644 --- a/pkgs/by-name/fw/fwupd/package.nix +++ b/pkgs/by-name/fw/fwupd/package.nix @@ -6,6 +6,7 @@ lib, fetchFromGitHub, gi-docgen, + writableTmpDirAsHomeHook, pkg-config, gobject-introspection, gettext, @@ -182,6 +183,9 @@ stdenv.mkDerivation (finalAttrs: { vala gobject-introspection gi-docgen + + # jcat-tool at buildtime requires a home directory + writableTmpDirAsHomeHook ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ mesonEmulatorHook @@ -287,11 +291,6 @@ stdenv.mkDerivation (finalAttrs: { sed -i "s/get_option('tests')/false/" plugins/redfish/meson.build ''; - preBuild = '' - # jcat-tool at buildtime requires a home directory - export HOME="$(mktemp -d)" - ''; - preCheck = '' addToSearchPath XDG_DATA_DIRS "${shared-mime-info}/share"