nixos-config/packages/tools/system/payload-dumper/default.nix

32 lines
670 B
Nix
Raw Normal View History

2022-01-12 19:25:18 +00:00
{
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;
};
}