Skip to content

Commit

Permalink
Use symlinkJoin instead of linkFarm
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Jan 20, 2021
1 parent c99d90a commit 456c745
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/default.nix
Expand Up @@ -357,10 +357,10 @@ in {
, basePath ? ""
, filterMap ? haskellLib.filterMap { inherit src filter basePath; }
}:
pkgs.evalPackages.linkFarm name (
pkgs.lib.mapAttrsToList (name: type: {
inherit name;
path =
pkgs.evalPackages.symlinkJoin {
inherit name;
paths =
pkgs.lib.mapAttrsToList (name: type:
if type == "directory"
then haskellLib.copyTextDir {
inherit name filter;
Expand All @@ -371,6 +371,8 @@ in {
else pkgs.evalPackages.writeTextFile {
inherit name;
text = __readFile (src + "/${name}");
};
}) (filterMap.nonEmpty));
destination = basePath + "/${name}";
}
) (filterMap.nonEmpty);
};
}

0 comments on commit 456c745

Please sign in to comment.