1{
2 lib,
3 fetchCrate,
4 rustPlatform,
5 openssl,
6 pkg-config,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "apkeep";
11 version = "0.17.0";
12
13 src = fetchCrate {
14 inherit pname version;
15 hash = "sha256-YjGfnYK22RIVa8D8CWnAxHGDqXENGAPIeQQ606Q3JW8=";
16 };
17
18 cargoHash = "sha256-CwucGAwAvxePNQu5p1OWx9o9xsvpzX1abH6HyF43nEE=";
19
20 prePatch = ''
21 rm .cargo/config.toml
22 '';
23
24 nativeBuildInputs = [
25 pkg-config
26 ];
27
28 buildInputs = [
29 openssl
30 ];
31
32 meta = {
33 description = "Command-line tool for downloading APK files from various sources";
34 homepage = "https://github.com/EFForg/apkeep";
35 changelog = "https://github.com/EFForg/apkeep/blob/${version}/CHANGELOG.md";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ ];
38 mainProgram = "apkeep";
39 };
40}