Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

otadump: init at 0.1.2

+54
+13
pkgs/by-name/ot/otadump/no-static.patch
··· 1 + diff --git a/Cargo.toml b/Cargo.toml 2 + index 65be773..3499dee 100644 3 + --- a/Cargo.toml 4 + +++ b/Cargo.toml 5 + @@ -30,7 +30,7 @@ nom = "7.1.3" 6 + nom-derive = "0.10.1" 7 + prost = "0.11.8" 8 + rayon = "1.7.0" 9 + -rust-lzma = { version = "0.6.0", features = ["static"] } 10 + +rust-lzma = "0.6.0" 11 + sha2 = "0.10.6" 12 + sync-unsafe-cell = "0.1.0" 13 + tempfile = "3.6.0"
+41
pkgs/by-name/ot/otadump/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + rustPlatform, 5 + pkg-config, 6 + protobuf, 7 + xz, 8 + }: 9 + 10 + rustPlatform.buildRustPackage rec { 11 + pname = "otadump"; 12 + version = "0.1.2"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "crazystylus"; 16 + repo = "otadump"; 17 + rev = version; 18 + hash = "sha256-4zPVcTU+0otV4EPQi80uSRkpRo9XzI0V3Kr17ugXX2U="; 19 + }; 20 + 21 + patches = [ ./no-static.patch ]; 22 + 23 + nativeBuildInputs = [ 24 + pkg-config 25 + protobuf 26 + ]; 27 + 28 + buildInputs = [ xz ]; 29 + 30 + doCheck = false; # There are no tests 31 + 32 + cargoHash = "sha256-lTzEgy9mevkmefvTZT9hEBHN5I+kXVqTev5+sy/JoaE="; 33 + 34 + meta = { 35 + description = "Command-line tool to extract partitions from Android OTA files"; 36 + homepage = "https://github.com/crazystylus/otadump"; 37 + license = lib.licenses.mit; 38 + maintainers = [ lib.maintainers.axka ]; 39 + mainProgram = "otadump"; 40 + }; 41 + }