depot/third_party/nixpkgs/pkgs/tools/misc/apkeep/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

45 lines
932 B
Nix

{ lib
, stdenv
, fetchCrate
, rustPlatform
, openssl
, pkg-config
, Security
, SystemConfiguration
}:
rustPlatform.buildRustPackage rec {
pname = "apkeep";
version = "0.16.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-nPeXIzy9tYWeJrq1tIKXMILOjVnsAvsceY5dzz7+pYE=";
};
cargoHash = "sha256-0NyZmZ00zmGfndz47NMeh76SMmh0ap6ZfkKebX7pMfw=";
prePatch = ''
rm .cargo/config.toml
'';
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
Security
SystemConfiguration
];
meta = with lib; {
description = "A command-line tool for downloading APK files from various sources";
homepage = "https://github.com/EFForg/apkeep";
changelog = "https://github.com/EFForg/apkeep/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ joelkoen ];
mainProgram = "apkeep";
};
}