From 9b8e0c4fd71d07634e91db18c12dc4e38f2a5b05 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Wed, 12 Jan 2022 20:25:18 +0100 Subject: [PATCH] packages: Init payload-dumper --- packages/default.nix | 2 ++ .../tools/system/payload-dumper/default.nix | 31 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 packages/tools/system/payload-dumper/default.nix diff --git a/packages/default.nix b/packages/default.nix index 8db55c1..ef4c8e9 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -147,4 +147,6 @@ key-mapper = prev.callPackage ./tools/games/key-mapper {}; sound-gambit = prev.callPackage tools/audio/sound-gambit {}; ebu-norm = prev.callPackage tools/audio/ebu-norm {}; + + payload-dumper = prev.callPackage tools/system/payload-dumper {}; } diff --git a/packages/tools/system/payload-dumper/default.nix b/packages/tools/system/payload-dumper/default.nix new file mode 100644 index 0000000..d1efe80 --- /dev/null +++ b/packages/tools/system/payload-dumper/default.nix @@ -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; + }; +}