Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 31 lines 840 B view raw
1{ lib, stdenv, fetchFromGitLab, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "olm"; 5 version = "3.2.16"; 6 7 src = fetchFromGitLab { 8 domain = "gitlab.matrix.org"; 9 owner = "matrix-org"; 10 repo = pname; 11 rev = version; 12 sha256 = "sha256-JX20mpuLO+UoNc8iQlXEHAbH9sfblkBbM1gE27Ve0ac="; 13 }; 14 15 nativeBuildInputs = [ cmake ]; 16 17 doCheck = true; 18 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 ''; 24 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 }; 31}