From 209fb62d4983f1219f10b2e89debd169549161b1 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 29 Aug 2020 17:33:07 +0200 Subject: [PATCH] xdg-mime: more forcefully create directories By installing two packages with the same directories we should force `buildEnv` to generate real directories instead symlinks into the Nix store. --- modules/misc/xdg-mime.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/misc/xdg-mime.nix b/modules/misc/xdg-mime.nix index 598cab913..5999e1299 100644 --- a/modules/misc/xdg-mime.nix +++ b/modules/misc/xdg-mime.nix @@ -29,7 +29,10 @@ in { pkgs.shared-mime-info # Make sure the target directories will be real directories. - (pkgs.runCommandLocal "dummy-xdg-mime-dirs" { } '' + (pkgs.runCommandLocal "dummy-xdg-mime-dirs1" { } '' + mkdir -p $out/share/{applications,mime/packages} + '') + (pkgs.runCommandLocal "dummy-xdg-mime-dirs2" { } '' mkdir -p $out/share/{applications,mime/packages} '') ];