6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
31 lines
935 B
Nix
31 lines
935 B
Nix
{ mkDerivation, lib, fetchFromGitHub, cmake, qtmultimedia, qtkeychain }:
|
|
|
|
mkDerivation rec {
|
|
pname = "libquotient";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "quotient-im";
|
|
repo = "libQuotient";
|
|
rev = version;
|
|
sha256 = "sha256-9NAWphpAI7/qWDMjsx26s+hOaQh0hbzjePfESC7PtXc=";
|
|
};
|
|
|
|
buildInputs = [ qtmultimedia qtkeychain ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
# https://github.com/quotient-im/libQuotient/issues/551
|
|
postPatch = ''
|
|
substituteInPlace Quotient.pc.in \
|
|
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
|
|
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A Qt5 library to write cross-platform clients for Matrix";
|
|
homepage = "https://matrix.org/docs/projects/sdk/quotient";
|
|
license = licenses.lgpl21;
|
|
maintainers = with maintainers; [ colemickens ];
|
|
};
|
|
}
|