make installPhase a little prettier for JAVMovieScraper

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-11-02 12:19:33 +01:00
parent da07c4a091
commit 23556559dd
1 changed files with 4 additions and 5 deletions

View File

@ -20,13 +20,12 @@ buildGradle {
buildInputs = [ openjdk11 ];
installPhase = ''
mkdir -p $out
mkdir -p $out/bin
tar xvf ./build/distributions/source--1.tar
cp -r source--1/lib source--1/bin $out
rm $out/bin/source.bat
cat $out/bin/source | sed 's~$JAVA_HOME~${openjdk11}~' > $out/bin/JAVMovieScraper
cd source--1/
cp -r ./lib $out
cat ./bin/source | sed 's~$JAVA_HOME~${openjdk11}~' > $out/bin/JAVMovieScraper
chmod +x $out/bin/JAVMovieScraper
rm $out/bin/source
'';
}