mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
neural-style: symlink models so they can be shared easily
This commit is contained in:
parent
f5c6b160c9
commit
e2f48282d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user