scala: move text files from $out to appropriate subdirs

Before, this package installed files called LICENSE and NOTICE at the
profile root directory. Which conflicts with other packages with the
same issue. Those files reside now in $out/share/doc/scala/.
This commit is contained in:
Jean-Marie Gaillourdet 2020-01-19 19:13:06 +01:00
parent 8b7c59bab0
commit 254045fde6

View File

@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
# put docs in correct subdirectory # put docs in correct subdirectory
mkdir -p $out/share/doc mkdir -p $out/share/doc
mv $out/doc $out/share/doc/scala mv $out/doc $out/share/doc/scala
mv $out/{LICENSE,NOTICE} $out/share/doc/scala
for p in $(ls $out/bin/) ; do for p in $(ls $out/bin/) ; do
wrapProgram $out/bin/$p \ wrapProgram $out/bin/$p \