nixpkgs/pkgs/development/libraries/libsignal-protocol-c/default.nix

30 lines
712 B
Nix
Raw Normal View History

2018-09-04 08:35:52 +00:00
{ stdenv, fetchFromGitHub, cmake, openssl }:
stdenv.mkDerivation rec {
pname = "libsignal-protocol-c";
2020-03-30 01:56:54 +00:00
version = "2.3.3";
2018-09-04 08:35:52 +00:00
src = fetchFromGitHub {
owner = "signalapp";
repo = "libsignal-protocol-c";
rev = "v${version}";
2020-03-30 01:56:54 +00:00
sha256 = "0z5p03vk15i6h870azfjgyfgxhv31q2vq6rfhnybrnkxq2wqzwhk";
2018-09-04 08:35:52 +00:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ openssl ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
outputs = [ "out" "dev" ];
meta = with stdenv.lib; {
description = "Signal Protocol C Library";
2020-03-30 01:56:54 +00:00
homepage = "https://github.com/signalapp/libsignal-protocol-c";
2018-09-04 08:35:52 +00:00
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ orivej ];
};
}