Return to old homer asset handling
This commit is contained in:
parent
c8676f8395
commit
1340de563b
|
@ -23,13 +23,15 @@ let
|
||||||
text = builtins.toJSON config;
|
text = builtins.toJSON config;
|
||||||
destination = "/assets/config.yml";
|
destination = "/assets/config.yml";
|
||||||
})
|
})
|
||||||
] ++ extraAssets;
|
] ++
|
||||||
|
lib.optional (extraAssets != [ ])
|
||||||
postBuid = lib.concatStringsSep "\n" (map
|
(runCommandLocal "homer-assets${nameSuffix}" { }
|
||||||
(asset: ''
|
(builtins.concatStringsSep "\n" (map
|
||||||
mv $out/${asset} $out/assets/${asset}
|
(asset: ''
|
||||||
'')
|
mkdir -p $out/assets/${dirOf asset}
|
||||||
extraAssets);
|
ln -s ${asset} $out/assets/${asset}
|
||||||
|
'')
|
||||||
|
extraAssets)));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue