depot/third_party/nixpkgs/pkgs/by-name/li/libomemo-c/package.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

29 lines
650 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, openssl
}:
stdenv.mkDerivation rec {
pname = "libomemo-c";
version = "0.5.0";
src = fetchFromGitHub {
owner = "dino";
repo = "libomemo-c";
rev = "v${version}";
hash = "sha256-GvHMp0FWoApbYLMhKfNxSBel1xxWWF3TZ4lnkLvu2s4=";
};
nativeBuildInputs = [ cmake ];
buildsInputs = [ openssl ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
meta = with lib; {
description = "Fork of libsignal-protocol-c adding support for OMEMO XEP-0384 0.5.0+";
homepage = "https://github.com/dino/libomemo-c";
license = licenses.gpl3Only;
maintainers = [ maintainers.astro ];
};
}