]> Git — Sourcephile - sourcephile-nix.git/blob - nixpkgs/pkgs/matrirc/default.nix
Add given password for hosts/mermet/knot/sourcephile.fr/lebureau.conf to store.
[sourcephile-nix.git] / nixpkgs / pkgs / matrirc / default.nix
1 { stdenv
2 , lib
3 , rustPlatform
4 , fetchFromGitHub
5 , pkg-config
6 , openssl
7 , sqlite
8 }:
9
10 rustPlatform.buildRustPackage rec {
11 pname = "matrirc";
12 version = "1.0.0";
13 src = fetchFromGitHub {
14 owner = "martinetd";
15 repo = "matrirc";
16 rev = "474544f3cdac1d996dacff8ed852bdf5876c6d32";
17 sha256 = "sha256-aJeS0wRmyYgQGb5M37Oae25FSI+QT68Ky+OrPnN3Jqs=";
18 };
19 cargoLock = {
20 lockFile = ./Cargo.lock;
21 outputHashes = {
22 "irc-0.15.0" = "sha256-oq0jDhmlGq2n+XaWhoM/FrC42EjJgY8BaSDk45JXZhI=";
23 "matrix-sdk-0.6.2" = "sha256-ngUhpzrqDhZ6cYhY0K5x9ZqOWru1uwGTIY4m8iax2m8=";
24 "ruma-0.8.2" = "sha256-hyz5TpdCJCs3ewLUvlfH0sHDgdbJ9u1atnjAkF7i44U=";
25 };
26 };
27
28 nativeBuildInputs = [ pkg-config ];
29 buildInputs = [ openssl sqlite ];
30
31 # no check anyway, save some time
32 doCheck = false;
33
34 meta = with lib; {
35 description = "Yet another irc to matrix gateway";
36 license = licenses.wtfpl;
37 maintainers = [ maintainers.asmadeus ];
38 platforms = platforms.all;
39 };
40 }