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