summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/dex2jar/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-06-27 10:32:48 +0200
committerlassulus <lassulus@lassul.us>2020-06-27 10:32:48 +0200
commit9f5626098433dddacc76b48911ae4af7b5b66ddb (patch)
tree71691a924ff71aa14aacf2627bce7cd36a1fcb47 /makefu/5pkgs/dex2jar/default.nix
parente80ff853ad7e764956769a1d6746c80b4eb3055e (diff)
parent1ed4ded92f83e4d2f91b0b46c514acb420b7e0c3 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/5pkgs/dex2jar/default.nix')
-rw-r--r--makefu/5pkgs/dex2jar/default.nix48
1 files changed, 0 insertions, 48 deletions
diff --git a/makefu/5pkgs/dex2jar/default.nix b/makefu/5pkgs/dex2jar/default.nix
deleted file mode 100644
index 76557ce67..000000000
--- a/makefu/5pkgs/dex2jar/default.nix
+++ /dev/null
@@ -1,48 +0,0 @@
-{ stdenv, lib, pkgs, fetchurl, jre, makeWrapper, unzip }:
-stdenv.mkDerivation rec {
- name = "${packageName}-${version}";
- packageName = "dex2jar";
- version = "2.0";
-
- src = fetchurl {
- url = "mirror://sourceforge/${packageName}/${name}.zip";
- sha256 = "1g3mrbyl8sdw1nhp17z23qbfzqpa0w2yxrywgphvd04jdr6yn1vr";
- };
-
- nativeBuildInputs = [ makeWrapper unzip ];
-
- unpackPhase = ''
- unzip $src
- cd ${name}
- '';
-
- configurePhase = ":";
-
- buildPhase = ''
- rm *.bat
- chmod +x *.sh
- '';
-
- installPhase = ''
- f=$out/lib/dex2jar/
- bin=$out/bin
-
- mkdir -p $f $bin
-
- # fixup path to java
- sed -i 's#^java#${pkgs.jre}/bin/java#' d2j_invoke.sh
-
- mv * $f
- for i in $f/*.sh; do
- n=$(basename ''${i%.sh})
- makeWrapper $i $bin/$n
- done
- '';
- fixupPhase = ":";
-
- meta = {
- homepage = https://sourceforge.net/projects/dex2jar/;
- description = "Tools to work with android .dex and java .class files";
- license = lib.licenses.asl20;
- };
-}