make installPhase a little prettier for JAVMovieScraper
This commit is contained in:
parent
da07c4a091
commit
23556559dd
|
@ -20,13 +20,12 @@ buildGradle {
|
||||||
buildInputs = [ openjdk11 ];
|
buildInputs = [ openjdk11 ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out/bin
|
||||||
tar xvf ./build/distributions/source--1.tar
|
tar xvf ./build/distributions/source--1.tar
|
||||||
cp -r source--1/lib source--1/bin $out
|
cd source--1/
|
||||||
rm $out/bin/source.bat
|
cp -r ./lib $out
|
||||||
cat $out/bin/source | sed 's~$JAVA_HOME~${openjdk11}~' > $out/bin/JAVMovieScraper
|
cat ./bin/source | sed 's~$JAVA_HOME~${openjdk11}~' > $out/bin/JAVMovieScraper
|
||||||
chmod +x $out/bin/JAVMovieScraper
|
chmod +x $out/bin/JAVMovieScraper
|
||||||
rm $out/bin/source
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue