Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / olm / default.nix
blobf8c3193b83555447c11e088c6340356ccd35f755
1 { lib, stdenv, fetchFromGitLab, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "olm";
5   version = "3.2.15";
7   src = fetchFromGitLab {
8     domain = "gitlab.matrix.org";
9     owner = "matrix-org";
10     repo = pname;
11     rev = version;
12     sha256 = "sha256-1mT0mcwssqe+DN502ExkcC/q3w9uBmlTil2gVJsMvvc=";
13   };
15   nativeBuildInputs = [ cmake ];
17   doCheck = true;
19   postPatch = ''
20     substituteInPlace olm.pc.in \
21       --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
22       --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
23   '';
25   meta = with lib; {
26     description = "Implements double cryptographic ratchet and Megolm ratchet";
27     homepage = "https://gitlab.matrix.org/matrix-org/olm";
28     license = licenses.asl20;
29     maintainers = with maintainers; [ tilpner oxzi ];
30   };