about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2023-09-22 08:51:25 +0200
committerGitHub <noreply@github.com>2023-09-22 08:51:25 +0200
commitdd6c86a81ca5fe03cc4e58f9be6269679501ef7f (patch)
treee4e24bb2144561467f261ccdeca4c7d221de6824 /pkgs/by-name
parentab2408b2e6468fba7e702073155c2836059cb0ec (diff)
parentd27d4410ac304171aadadd7b9b0656754d6911f2 (diff)
Merge pull request #256527 from fabaff/matrix-commander-rs
matrix-commander-rs: init at 0.1.32
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/ma/matrix-commander-rs/package.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/ma/matrix-commander-rs/package.nix b/pkgs/by-name/ma/matrix-commander-rs/package.nix
new file mode 100644
index 0000000000000..1eba5cf03562e
--- /dev/null
+++ b/pkgs/by-name/ma/matrix-commander-rs/package.nix
@@ -0,0 +1,41 @@
+{ lib
+, stdenv
+, darwin
+, fetchFromGitHub
+, openssl
+, pkg-config
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "matrix-commander-rs";
+  version = "0.1.32";
+
+  src = fetchFromGitHub {
+    owner = "8go";
+    repo = "matrix-commander-rs";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-Bp4bP77nWi0XLhI4/wsry6fEW2BR90Y+XqV/WCinwJo=";
+  };
+
+  cargoHash = "sha256-HPkpCnlSZ9sY40gc4dLOdcBhATvJVeqk7GJ0+XqjHVk=";
+
+  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";
+  };
+}