Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / by-name / ma / matrix-commander-rs / package.nix
blobd315725761cd5677f2718e53c5b2ee8d42629b4e
1 { lib
2 , stdenv
3 , darwin
4 , fetchFromGitHub
5 , openssl
6 , pkg-config
7 , rustPlatform
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "matrix-commander-rs";
12   version = "0.3.0";
14   src = fetchFromGitHub {
15     owner = "8go";
16     repo = "matrix-commander-rs";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-aecmd7LtHowH+nqLcRNDSfAxZDKtBTrG1KNyRup8CYI=";
19   };
21   cargoHash = "sha256-2biUWLWE0XtmB79yxFahQqLmqwH/6q50IhkcbUrBifU=";
23   nativeBuildInputs = [
24     pkg-config
25   ];
27   buildInputs = [
28     openssl
29   ] ++ lib.optionals stdenv.isDarwin [
30     darwin.apple_sdk.frameworks.Security
31   ];
33   meta = with lib; {
34     description = "CLI-based Matrix client app for sending and receiving";
35     homepage = "https://github.com/8go/matrix-commander-rs";
36     changelog = "https://github.com/8go/matrix-commander-rs/releases/tag/v${version}";
37     license = licenses.gpl3Only;
38     maintainers = with maintainers; [ fab ];
39     mainProgram = "matrix-commander-rs";
40   };