2021-11-11 05:45:11 +01:00
|
|
|
{ lib, stdenv, fetchCrate, rustPlatform, openssl, pkg-config, Security }:
|
2021-11-04 08:50:45 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "apkeep";
|
2022-11-25 06:39:58 +01:00
|
|
|
version = "0.14.1";
|
2021-11-04 08:50:45 +01:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-11-25 06:39:58 +01:00
|
|
|
sha256 = "sha256-ikI178fExFHYapg95NKtMxKT/4mXfVH+Jvaw8i1pSu4=";
|
2021-11-04 08:50:45 +01:00
|
|
|
};
|
|
|
|
|
2022-11-25 06:39:58 +01:00
|
|
|
cargoSha256 = "sha256-hA/GIj5MunflLlwa0S4o4EEr6Us+34dgYAAc43C6EXo=";
|
2021-11-04 08:50:45 +01:00
|
|
|
|
2021-11-15 06:38:28 +01:00
|
|
|
prePatch = ''
|
|
|
|
rm .cargo/config.toml
|
|
|
|
'';
|
|
|
|
|
2021-11-04 08:50:45 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-11-11 05:45:11 +01:00
|
|
|
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
2021-11-04 08:50:45 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command-line tool for downloading APK files from various sources";
|
|
|
|
homepage = "https://github.com/EFForg/apkeep";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jyooru ];
|
|
|
|
};
|
|
|
|
}
|