1 { lib, fetchFromGitHub, jre, makeWrapper, maven }:
3 maven.buildMavenPackage rec {
7 src = fetchFromGitHub {
8 owner = "intoolswetrust";
10 rev = "${pname}-${version}";
11 hash = "sha256-rRttA5H0A0c44loBzbKH7Waoted3IsOgxGCD2VM0U/Q=";
14 mvnHash = "sha256-lEcAq0H8Uacv02ItjVGfxvtRip5206HtpREBrQDzBDo=";
16 mvnParameters = "-DskipTests";
18 nativeBuildInputs = [ makeWrapper ];
21 mkdir -p $out/bin $out/share/jd-cli
22 install -Dm644 jd-cli/target/jd-cli.jar $out/share/jd-cli
24 makeWrapper ${jre}/bin/java $out/bin/jd-cli \
25 --add-flags "-jar $out/share/jd-cli/jd-cli.jar"
29 description = "Simple command line wrapper around JD Core Java Decompiler project";
30 homepage = "https://github.com/intoolswetrust/jd-cli";
31 license = licenses.gpl3;
32 maintainers = with maintainers; [ majiir ];