Skip to content

Commit

Permalink
apkeditor: init at 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
UlyssesZh committed Oct 18, 2024
1 parent 5d82464 commit 4fc1caa
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/by-name/ap/apkeditor/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
lib,
buildEnv,
fetchurl,
jre,
writeShellScriptBin,
}:

let
pname = "apkeditor";
version = "1.4.1";

jar = fetchurl {
url = "https://github.com/REAndroid/APKEditor/releases/download/V${version}/APKEditor-${version}.jar";
hash = "sha256-SpiuanVSZDV2A/GQa5LmLnV9WSKQFOMzlfTgP/AZ/ag=";
};
in
buildEnv {
name = "${pname}-${version}";

paths = [
(writeShellScriptBin "APKEditor" ''
exec ${jre}/bin/java -jar ${jar} $@
'')
];

meta = {
description = "Powerful android apk resources editor";
maintainers = with lib.maintainers; [ ulysseszhan ];
license = lib.licenses.asl20;
platforms = lib.platforms.all;
homepage = "https://github.com/REAndroid/APKEditor";
executables = [ "APKEditor" ];
};

}

0 comments on commit 4fc1caa

Please sign in to comment.