Unverified Commit b54257fb authored by Bernardo Meurer's avatar Bernardo Meurer
Browse files

linkFarm: add entries to passthru

parent 248cf8ac
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -475,8 +475,12 @@ rec {
   *
   * See the note on symlinkJoin for the difference between linkFarm and symlinkJoin.
   */
  linkFarm = name: entries: runCommand name { preferLocalBuild = true; allowSubstitutes = false; }
    ''mkdir -p $out
   linkFarm = name: entries: runCommand name {
     preferLocalBuild = true;
     allowSubstitutes = false;
     passthru = lib.listToAttrs (map (x: lib.nameValuePair x.name x.path) entries);
   } ''
    mkdir -p $out
    cd $out
    ${lib.concatMapStrings (x: ''
      mkdir -p "$(dirname ${lib.escapeShellArg x.name})"