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