54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{pkgs}: let
|
|
inherit
|
|
(pkgs)
|
|
lib
|
|
rustPlatform
|
|
fetchFromGitHub
|
|
pkg-config
|
|
openssl
|
|
zlib
|
|
stdenv
|
|
darwin
|
|
;
|
|
in
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "aim";
|
|
version = "1.8.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mihaigalos";
|
|
repo = "aim";
|
|
rev = version;
|
|
hash = "sha256-+oeyaPBsgQ+eNEGx9lRnNKjTSowLd0T+8WUln1UizBA=";
|
|
};
|
|
|
|
cargoHash = "sha256-LeFhaXtzCSujlVuqaIiXYL2TlhlpgqsN9+fACv9iEmY=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
openssl
|
|
zlib
|
|
]
|
|
++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
env = {
|
|
OPENSSL_NO_VENDOR = true;
|
|
};
|
|
|
|
meta = {
|
|
description = "A command line download/upload tool with resume";
|
|
homepage = "https://github.com/mihaigalos/aim";
|
|
changelog = "https://github.com/mihaigalos/aim/blob/${src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [];
|
|
mainProgram = "aim";
|
|
};
|
|
}
|