1 { lib, stdenv, fetchurl, makeWrapper, jre }:
3 stdenv.mkDerivation rec {
4 pname = "revanced-cli";
8 url = "https://github.com/revanced/revanced-cli/releases/download/v${version}/revanced-cli-${version}-all.jar";
9 hash = "sha256-QQH7aEkfBULqAvJ0FsKFxrraFjg1m1JJnuDtyvLJXEk=";
12 nativeBuildInputs = [ makeWrapper ];
13 buildInputs = [ jre ];
20 mkdir -p "$prefix/bin"
22 makeWrapper ${jre}/bin/java $out/bin/revanced-cli \
23 --add-flags "-jar $src" \
24 --prefix PATH : "$PATH"
30 description = "Command line application as an alternative to the ReVanced Manager";
31 homepage = "https://github.com/revanced/revanced-cli";
32 license = licenses.gpl3Only;
33 sourceProvenance = with sourceTypes; [ binaryBytecode ];
34 maintainers = with maintainers; [ jopejoe1 ];
35 mainProgram = "revanced-cli";