commit
d0742aa67b
1 changed files with 12 additions and 11 deletions
|
@ -1,18 +1,18 @@
|
||||||
{ stdenv
|
{ lib
|
||||||
, lib
|
, stdenvNoCC
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, jre
|
, jre
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, unzip
|
, unzip
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "${pname}-${version}";
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
pname = "dex2jar";
|
pname = "dex2jar";
|
||||||
version = "2.0";
|
version = "2.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/${pname}/${name}.zip";
|
url = "https://github.com/pxb1988/dex2jar/releases/download/v${finalAttrs.version}/dex2jar-${finalAttrs.version}.zip";
|
||||||
sha256 = "1g3mrbyl8sdw1nhp17z23qbfzqpa0w2yxrywgphvd04jdr6yn1vr";
|
hash = "sha256-epvfhD1D3k0elOwue29VglAXsMSn7jn/gmYOJJOkbwg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper unzip ];
|
nativeBuildInputs = [ makeWrapper unzip ];
|
||||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
f=$out/lib/dex2jar/
|
f=$out/share/dex2jar/
|
||||||
|
|
||||||
mkdir -p $f $out/bin
|
mkdir -p $f $out/bin
|
||||||
|
|
||||||
|
@ -35,10 +35,11 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://sourceforge.net/projects/dex2jar/";
|
homepage = "https://github.com/pxb1988/dex2jar";
|
||||||
description = "Tools to work with android .dex and java .class files";
|
description = "Tools to work with android .dex and java .class files";
|
||||||
maintainers = with maintainers; [ makefu ];
|
maintainers = with maintainers; [ makefu ];
|
||||||
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue