summary refs log tree commit diff
path: root/pkgs/by-name/ax/axmldec/package.nix
blob: c11a33904c18f42556c24923dee752b68ca44129 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, stdenv
, fetchFromGitHub
, cmake
, doxygen
, boost
, zlib
}:

stdenv.mkDerivation rec {
  pname = "axmldec";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "ytsutano";
    repo = "axmldec";
    rev = "v${version}";
    fetchSubmodules = true;
    hash = "sha256-LFDZZbRDa8mQmglgS4DA/OqXp0HJZ2uqg1hbStdgvUw=";
  };

  nativeBuildInputs = [ cmake doxygen ];
  buildInputs = [ boost zlib ];

  meta = with lib; {
    description = "Stand-alone binary AndroidManifest.xml decoder";
    longDescription = ''
      This tool accepts either a binary or a text XML file and prints the
      decoded XML to the standard output or a file. It also allows you to
      extract the decoded AndroidManifest.xml directly from an APK file.
    '';
    homepage = "https://github.com/ytsutano/axmldec";
    license = licenses.isc;
    mainProgram = "axmldec";
    maintainers = with maintainers; [ franciscod ];
    platforms = platforms.unix ++ platforms.windows;
  };
}