fwupd: use writableTmpDirAsHomeHook
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user