enjarify: init at 1.0.3

This commit is contained in:
Sandro Jäckel 2021-10-23 00:18:18 +02:00
parent 6fdc3e6a7c
commit bc4417cdca
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ lib, stdenv, fetchFromGitHub, python3, runtimeShell }:
stdenv.mkDerivation rec {
pname = "enjarify";
version = "1.0.3";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = version;
sha256 = "sha256-VDBC5n2jWLNJsilX+PV1smL5JeBDj23jYFRwdObXwYs=";
};
installPhase = ''
pypath="$out/${python3.sitePackages}"
mkdir -p $out/bin $pypath
mv enjarify $pypath
cat << EOF > $out/bin/enjarify
#!${runtimeShell}
export PYTHONPATH=$pypath
exec ${python3.interpreter} -O -m enjarify.main "\$@"
EOF
chmod +x $out/bin/enjarify
'';
buildInputs = [ ];
meta = with lib; {
description = "Tool for translating Dalvik bytecode to equivalent Java bytecode";
homepage = "https://github.com/google/enjarify/";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -1626,6 +1626,8 @@ with pkgs;
enchive = callPackage ../tools/security/enchive { };
enjarify = callPackage ../tools/misc/enjarify { };
enpass = callPackage ../tools/security/enpass { };
esbuild = callPackage ../development/tools/esbuild { };