diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/olm')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/olm/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/olm/default.nix b/nixpkgs/pkgs/development/libraries/olm/default.nix new file mode 100644 index 000000000000..bb7553c2eb3e --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/olm/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitLab, cmake }: + +stdenv.mkDerivation rec { + pname = "olm"; + version = "3.2.16"; + + src = fetchFromGitLab { + domain = "gitlab.matrix.org"; + owner = "matrix-org"; + repo = pname; + rev = version; + sha256 = "sha256-JX20mpuLO+UoNc8iQlXEHAbH9sfblkBbM1gE27Ve0ac="; + }; + + nativeBuildInputs = [ cmake ]; + + doCheck = true; + + postPatch = '' + substituteInPlace olm.pc.in \ + --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \ + --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@ + ''; + + meta = with lib; { + description = "Implements double cryptographic ratchet and Megolm ratchet"; + homepage = "https://gitlab.matrix.org/matrix-org/olm"; + license = licenses.asl20; + maintainers = with maintainers; [ tilpner oxzi ]; + }; +} |