packages: Init payload-dumper

This commit is contained in:
PapaTutuWawa 2022-01-12 20:25:18 +01:00
parent 5f0a413b90
commit 9b8e0c4fd7
2 changed files with 33 additions and 0 deletions

View File

@ -147,4 +147,6 @@ key-mapper = prev.callPackage ./tools/games/key-mapper {};
sound-gambit = prev.callPackage tools/audio/sound-gambit {}; sound-gambit = prev.callPackage tools/audio/sound-gambit {};
ebu-norm = prev.callPackage tools/audio/ebu-norm {}; ebu-norm = prev.callPackage tools/audio/ebu-norm {};
payload-dumper = prev.callPackage tools/system/payload-dumper {};
} }

View File

@ -0,0 +1,31 @@
{
lib
, fetchFromGitHub
, buildGoModule
, xz
}:
buildGoModule rec {
pname = "payload-dumper";
version = "1.2.0";
src = fetchFromGitHub {
owner = "ssut";
repo = "payload-dumper-go";
rev = version;
sha256 = "1airc6pcv9m06g35jfxvwh5pr1cxhwndny22b0liwvp4hrc99chc";
};
vendorSha256 = "sha256-CqIZFMDN/kK9bT7b/32yQ9NJAQnkI8gZUMKa6MJCaec=";
#nativeBuildInputs = [ pkg-config ];
buildInputs = [ xz ];
meta = with lib; {
description = "an android OTA payload dumper written in Go";
homepage = "https://github.com/ssut/payload-dumper-go";
license = licenses.asl20;
maintainers = [];
platforms = platforms.linux;
};
}