lol
1{ lib, stdenv, fetchFromGitHub, python3, runtimeShell }:
2
3stdenv.mkDerivation rec {
4 pname = "enjarify";
5 version = "1.0.3";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = pname;
10 rev = version;
11 sha256 = "sha256-VDBC5n2jWLNJsilX+PV1smL5JeBDj23jYFRwdObXwYs=";
12 };
13
14 installPhase = ''
15 pypath="$out/${python3.sitePackages}"
16 mkdir -p $out/bin $pypath
17 mv enjarify $pypath
18
19 cat << EOF > $out/bin/enjarify
20 #!${runtimeShell}
21 export PYTHONPATH=$pypath
22 exec ${python3.interpreter} -O -m enjarify.main "\$@"
23 EOF
24 chmod +x $out/bin/enjarify
25 '';
26
27 buildInputs = [ ];
28
29 meta = with lib; {
30 description = "Tool for translating Dalvik bytecode to equivalent Java bytecode";
31 homepage = "https://github.com/google/enjarify/";
32 license = licenses.asl20;
33 maintainers = with maintainers; [ SuperSandro2000 ];
34 };
35}