From 23556559ddee568ec00d8a19461f4a01dde75dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Sat, 2 Nov 2019 12:19:33 +0100 Subject: [PATCH] make installPhase a little prettier for JAVMovieScraper --- pkgs/JAVMovieScraper/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/JAVMovieScraper/default.nix b/pkgs/JAVMovieScraper/default.nix index 3394d30..b7fb6bb 100644 --- a/pkgs/JAVMovieScraper/default.nix +++ b/pkgs/JAVMovieScraper/default.nix @@ -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 ''; }