menulibre: use writableTmpDirAsHomeHook

This commit is contained in:
Pol Dellaiera 2025-01-30 20:38:26 +01:00
parent f75606e0cb
commit e3d1fe03ed

View file

@ -10,6 +10,7 @@
nix-update-script,
testers,
menulibre,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication rec {
@ -19,7 +20,7 @@ python3Packages.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "bluesabre";
repo = "menulibre";
rev = "menulibre-${version}";
tag = "menulibre-${version}";
hash = "sha256-IfsuOYP/H3r1GDWMVVSBfYvQS+01VJaAlZu+c05geWg=";
};
@ -35,6 +36,7 @@ python3Packages.buildPythonApplication rec {
intltool
gobject-introspection
wrapGAppsHook3
writableTmpDirAsHomeHook
];
postPatch = ''
@ -43,10 +45,6 @@ python3Packages.buildPythonApplication rec {
--replace-fail 'update_desktop_file(desktop_file, script_path)' ""
'';
preBuild = ''
export HOME=$TMPDIR
'';
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {