2019-11-02 03:14:47 +01:00
|
|
|
{ pkgs, fetchFromGitHub, gradleGen, openjdk11}:
|
|
|
|
with pkgs;
|
|
|
|
let
|
|
|
|
buildGradle = callPackage ./gradle-env.nix { gradleGen = gradleGen.override { java = openjdk11; }; };
|
|
|
|
in
|
|
|
|
buildGradle {
|
|
|
|
envSpec = ./gradle-env.json;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DoctorD1501";
|
|
|
|
repo = "JAVMovieScraper";
|
|
|
|
rev = "fcd695b2981d36aea01c9153ee2ef1c27cd42c78";
|
|
|
|
sha256 = "0qwdzyfmscjj75jyh9mnk1rlmy12fnnsqbhvp9xdsnfhwy78x6xm";
|
|
|
|
};
|
|
|
|
|
2020-02-28 01:12:16 +01:00
|
|
|
patches = [
|
|
|
|
./0001-disable_spotless.patch
|
|
|
|
./0002-respectXDG.patch
|
|
|
|
./0003-disable-codacy.patch
|
|
|
|
];
|
2019-11-02 03:14:47 +01:00
|
|
|
|
|
|
|
gradleFlags = [ "DistTar" ];
|
|
|
|
|
|
|
|
buildInputs = [ openjdk11 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-11-02 12:19:33 +01:00
|
|
|
mkdir -p $out/bin
|
2019-11-02 03:14:47 +01:00
|
|
|
tar xvf ./build/distributions/source--1.tar
|
2019-11-02 12:19:33 +01:00
|
|
|
cd source--1/
|
|
|
|
cp -r ./lib $out
|
|
|
|
cat ./bin/source | sed 's~$JAVA_HOME~${openjdk11}~' > $out/bin/JAVMovieScraper
|
2019-11-02 03:14:47 +01:00
|
|
|
chmod +x $out/bin/JAVMovieScraper
|
|
|
|
'';
|
2020-02-25 11:29:52 +01:00
|
|
|
|
|
|
|
meta = with pkgs.stdenv.lib; {
|
2020-04-14 12:24:19 +02:00
|
|
|
broken = true;
|
2020-02-25 12:37:48 +01:00
|
|
|
description = "A program to fetch metadata for Japanese Adult Video";
|
|
|
|
homepage = "https://github.com/DoctorD1501/JAVMovieScraper";
|
|
|
|
license = licenses.gpl2;
|
2020-02-25 11:29:52 +01:00
|
|
|
};
|
|
|
|
|
2019-11-02 03:14:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|