otadump: init at 0.1.2

This commit is contained in:
Axel Karjalainen
2024-12-10 19:55:50 +02:00
parent 3a1877ce56
commit 9bdb97c052
2 changed files with 54 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
diff --git a/Cargo.toml b/Cargo.toml
index 65be773..3499dee 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,7 +30,7 @@ nom = "7.1.3"
nom-derive = "0.10.1"
prost = "0.11.8"
rayon = "1.7.0"
-rust-lzma = { version = "0.6.0", features = ["static"] }
+rust-lzma = "0.6.0"
sha2 = "0.10.6"
sync-unsafe-cell = "0.1.0"
tempfile = "3.6.0"
+41
View File
@@ -0,0 +1,41 @@
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
protobuf,
xz,
}:
rustPlatform.buildRustPackage rec {
pname = "otadump";
version = "0.1.2";
src = fetchFromGitHub {
owner = "crazystylus";
repo = "otadump";
rev = version;
hash = "sha256-4zPVcTU+0otV4EPQi80uSRkpRo9XzI0V3Kr17ugXX2U=";
};
patches = [ ./no-static.patch ];
nativeBuildInputs = [
pkg-config
protobuf
];
buildInputs = [ xz ];
doCheck = false; # There are no tests
cargoHash = "sha256-lTzEgy9mevkmefvTZT9hEBHN5I+kXVqTev5+sy/JoaE=";
meta = {
description = "Command-line tool to extract partitions from Android OTA files";
homepage = "https://github.com/crazystylus/otadump";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.axka ];
mainProgram = "otadump";
};
}