matrix-conduit: unbreak on darwin, remove unused inputs
This commit is contained in:
parent
067bfc6c90
commit
0893176e14
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, lib, fetchFromGitLab, rustPlatform, pkg-config, rocksdb }:
|
||||
{ lib, rustPlatform, fetchFromGitLab, stdenv, darwin }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "matrix-conduit";
|
||||
|
@ -15,20 +15,20 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
nativeBuildInputs = [
|
||||
rustPlatform.bindgenHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
rocksdb
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
cargoBuildFlags = [ "--bin" "conduit" ];
|
||||
# tests failed on x86_64-darwin with SIGILL: illegal instruction
|
||||
doCheck = !(stdenv.isx86_64 && stdenv.isDarwin);
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "A Matrix homeserver written in Rust";
|
||||
homepage = "https://conduit.rs/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ pstn piegames pimeys ];
|
||||
mainProgram = "conduit";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue