neural-style: symlink models so they can be shared easily

This commit is contained in:
Michael Raskin 2016-08-31 19:43:32 +02:00
parent f5c6b160c9
commit e2f48282d3

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p "$out"/{bin,lib/lua/neural-style/models,share/doc/neural-style,share/neural-style}
for file in $models; do
cp "$file" "$out/lib/lua/neural-style/models/$(basename "$file" | sed -e 's/[^-]*-//')"
ln -s "$file" "$out/lib/lua/neural-style/models/$(basename "$file" | sed -e 's/[^-]*-//')"
done;
cp README* INSTALL* LICEN?E* "$out"/share/doc/neural-style/
cp neural_style.lua "$out"/lib/lua/neural-style