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

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

43 lines
858 B
Nix
Raw Normal View History

2023-01-10 07:53:34 +00:00
{ lib
, stdenv
, fetchCrate
, rustPlatform
, openssl
, pkg-config
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "apkeep";
2023-01-10 01:28:38 +00:00
version = "0.15.0";
src = fetchCrate {
inherit pname version;
2023-01-10 07:53:34 +00:00
hash = "sha256-PikUb9D9duMATo9hJgjuZUK3WXUKfnCDWJBE/bJI92c=";
};
2023-01-10 01:28:38 +00:00
cargoHash = "sha256-R58CzeI1Xho6kzjb9ktO7sr6TgM3Hf2VU0pK4hmb1v4=";
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.isDarwin [
Security
];
meta = with lib; {
description = "A 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;
2023-01-15 04:14:19 +00:00
maintainers = with maintainers; [ joelkoen ];
};
}