nixpkgs/pkgs/tools/misc/apkeep/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
944 B
Nix
Raw Normal View History

2023-01-10 07:53:34 +00:00
{
lib,
stdenv,
fetchCrate,
rustPlatform,
openssl,
pkg-config,
Security,
2024-04-12 08:30:05 +00:00
SystemConfiguration,
2023-01-10 07:53:34 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "apkeep";
2024-10-14 09:26:02 +00:00
version = "0.17.0";
src = fetchCrate {
inherit pname version;
2024-10-14 09:26:02 +00:00
hash = "sha256-YjGfnYK22RIVa8D8CWnAxHGDqXENGAPIeQQ606Q3JW8=";
};
2024-10-14 09:26:02 +00:00
cargoHash = "sha256-Fx/XNmml/5opekmH1qs/f3sD45KWfNZjdOxTuNJfZiw=";
2021-11-15 05:38:28 +00:00
prePatch = ''
rm .cargo/config.toml
'';
2023-01-10 07:53:34 +00:00
nativeBuildInputs = [
pkg-config
];
2021-11-11 04:45:11 +00:00
2023-01-10 07:53:34 +00:00
buildInputs =
[
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
Security
2024-04-12 08:30:05 +00:00
SystemConfiguration
2023-01-10 07:53:34 +00:00
];
meta = with lib; {
description = "Command-line tool for downloading APK files from various sources";
homepage = "https://github.com/EFForg/apkeep";
2023-01-10 07:53:34 +00:00
changelog = "https://github.com/EFForg/apkeep/blob/${version}/CHANGELOG.md";
license = licenses.mit;
2024-08-22 23:46:20 +00:00
maintainers = [ ];
2023-11-27 01:17:53 +00:00
mainProgram = "apkeep";
};
}