From a9c5c63cbc288e46807557e392e8eb7af6d5e5ce Mon Sep 17 00:00:00 2001 From: Julius de Bruijn Date: Fri, 4 Feb 2022 21:04:21 +0100 Subject: [PATCH] matrix-conduit: 0.2.0 -> 0.3.0 --- pkgs/servers/matrix-conduit/default.nix | 26 +++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/matrix-conduit/default.nix b/pkgs/servers/matrix-conduit/default.nix index 61f45aecb595..cde926de2696 100644 --- a/pkgs/servers/matrix-conduit/default.nix +++ b/pkgs/servers/matrix-conduit/default.nix @@ -1,17 +1,35 @@ -{ stdenv, lib, fetchFromGitLab, rustPlatform, }: +{ stdenv, lib, fetchFromGitLab, rustPlatform, pkgs }: rustPlatform.buildRustPackage rec { pname = "matrix-conduit"; - version = "0.2.0"; + version = "0.3.0"; src = fetchFromGitLab { owner = "famedly"; repo = "conduit"; rev = "v${version}"; - sha256 = "0k3313bnv399v738j1xja9hngsmi39r3vzvgwssl5c24yvkvskdr"; + sha256 = "sha256-jCBvenwXPgYms5Tbu16q/F8UNpvaw0Shao9kLEZLbHM="; }; - cargoSha256 = "0379dvc8m8clc9lrxd1x0aciqvcgv3hjq7xfspz3bh8aq2a43pcs"; + cargoSha256 = "sha256-fpjzc2HiWP6nV8YZOwxsIOhy4ht/tQqcvCkcLMIFUaQ="; + + nativeBuildInputs = with pkgs; [ + clang + llvmPackages.libclang + ]; + + buildInputs = with pkgs; [ + pkg-config + clangStdenv + llvmPackages.libclang.lib + rocksdb + ]; + + preBuild = with pkgs; '' + export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib"; + ''; + + cargoBuildFlags = "--bin conduit"; meta = with lib; { description = "A Matrix homeserver written in Rust";