46 lines
933 B
Nix
46 lines
933 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "kaput-cli";
|
|
version = "2.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "davidchalifoux";
|
|
repo = "kaput-cli";
|
|
tag = "v${version}";
|
|
hash = "sha256-sy8k9L9rmiRFzvhLc+hYl9OqmmP8INLxMNRjAx7/V8g=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-yb56rrPlTuc7O4fF9NPNB2djCfq3fLu2hD4gUjRHvqM=";
|
|
|
|
env = {
|
|
OPENSSL_NO_VENDOR = 1;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
changelog = "https://github.com/davidchalifoux/kaput-cli/releases/tag/v${version}";
|
|
description = "unofficial CLI client for Put.io";
|
|
homepage = "https://kaput.sh/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ pyrox0 ];
|
|
mainProgram = "kaput";
|
|
};
|
|
}
|