2023-09-21 18:12:17 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
, fetchFromGitHub
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "matrix-commander-rs";
|
2023-10-15 15:56:56 +02:00
|
|
|
version = "0.3.0";
|
2023-09-21 18:12:17 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "8go";
|
|
|
|
repo = "matrix-commander-rs";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-15 15:56:56 +02:00
|
|
|
hash = "sha256-aecmd7LtHowH+nqLcRNDSfAxZDKtBTrG1KNyRup8CYI=";
|
2023-09-21 18:12:17 +02:00
|
|
|
};
|
|
|
|
|
2023-10-15 15:56:56 +02:00
|
|
|
cargoHash = "sha256-2biUWLWE0XtmB79yxFahQqLmqwH/6q50IhkcbUrBifU=";
|
2023-09-21 18:12:17 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI-based Matrix client app for sending and receiving";
|
|
|
|
homepage = "https://github.com/8go/matrix-commander-rs";
|
|
|
|
changelog = "https://github.com/8go/matrix-commander-rs/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
mainProgram = "matrix-commander-rs";
|
|
|
|
};
|
|
|
|
}
|