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

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

29 lines
755 B
Nix
Raw Normal View History

2021-11-11 05:45:11 +01:00
{ lib, stdenv, fetchCrate, rustPlatform, openssl, pkg-config, Security }:
rustPlatform.buildRustPackage rec {
pname = "apkeep";
2022-05-27 03:46:29 +02:00
version = "0.13.0";
src = fetchCrate {
inherit pname version;
2022-05-27 03:46:29 +02:00
sha256 = "sha256-wFrpzemqBdhEO8cahSV9Qjw4HxCk+TgAVpGaa/IaO0Q=";
};
2022-05-27 03:46:29 +02:00
cargoSha256 = "sha256-6DAzNiNHmzOwg7RlRCorUCW33FTYdfLf6PnTygcL1ok=";
2021-11-15 06:38:28 +01:00
prePatch = ''
rm .cargo/config.toml
'';
nativeBuildInputs = [ pkg-config ];
2021-11-11 05:45:11 +01: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";
license = licenses.mit;
maintainers = with maintainers; [ jyooru ];
};
}