evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ma / matrix-commander-rs / package.nix
blob78e0abebe88e105ff8069de840fb1d9c49520eb4
2   lib,
3   stdenv,
4   darwin,
5   fetchFromGitHub,
6   openssl,
7   pkg-config,
8   rustPlatform,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "matrix-commander-rs";
13   version = "0.4.1";
15   src = fetchFromGitHub {
16     owner = "8go";
17     repo = "matrix-commander-rs";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-UoqddgXrwaKtIE0cuAFkfrgmvLIDRpGjl5jBQvh9mdI=";
20   };
22   cargoHash = "sha256-cMXnMCiMeM4Tykquco7G3kcZC2xxoDl+uWqrQLFp1VM=";
24   nativeBuildInputs = [ pkg-config ];
26   buildInputs =
27     [ openssl ]
28     ++ lib.optionals stdenv.hostPlatform.isDarwin [
29       darwin.apple_sdk.frameworks.Security
30       darwin.apple_sdk.frameworks.SystemConfiguration
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   };