2021-11-11 04:45:11 +00:00
|
|
|
{ lib, stdenv, fetchCrate, rustPlatform, openssl, pkg-config, Security }:
|
2021-11-04 07:50:45 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "apkeep";
|
2021-11-30 05:01:10 +00:00
|
|
|
version = "0.7.0";
|
2021-11-04 07:50:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2021-11-30 05:01:10 +00:00
|
|
|
sha256 = "0anfp3nwsainx9sw4njcmkzczq1rmib3dyncwhcf7y3j9v978d3h";
|
2021-11-04 07:50:45 +00:00
|
|
|
};
|
|
|
|
|
2021-11-30 05:01:10 +00:00
|
|
|
cargoSha256 = "0npw8f8c0qcprcins0pc12c5w47kv8dd1nrzv4xyllr44vx488mc";
|
2021-11-04 07:50:45 +00:00
|
|
|
|
2021-11-15 05:38:28 +00:00
|
|
|
prePatch = ''
|
|
|
|
rm .cargo/config.toml
|
|
|
|
'';
|
|
|
|
|
2021-11-04 07:50:45 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-11-11 04:45:11 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
2021-11-04 07:50:45 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|