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

46 lines
916 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-04-05 00:28:43 +00:00
version = "0.16.0";
src = fetchCrate {
inherit pname version;
2024-04-05 00:28:43 +00:00
hash = "sha256-nPeXIzy9tYWeJrq1tIKXMILOjVnsAvsceY5dzz7+pYE=";
};
2024-04-05 00:28:43 +00:00
cargoHash = "sha256-0NyZmZ00zmGfndz47NMeh76SMmh0ap6ZfkKebX7pMfw=";
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 [
2023-01-10 07:53:34 +00:00
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";
};
}