Skip to content

Commit

Permalink
xdg-mime: more forcefully create directories
Browse files Browse the repository at this point in the history
By installing two packages with the same directories we should force
`buildEnv` to generate real directories instead symlinks into the Nix
store.
  • Loading branch information
rycee authored and aakropotkin committed Sep 9, 2020
1 parent 6eac621 commit eb43b5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/misc/xdg-mime.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}
'')
];
Expand Down

0 comments on commit eb43b5d

Please sign in to comment.