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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
710 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, openssl }:
2018-09-04 08:35:52 +00:00
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 lib; {
2018-09-04 08:35:52 +00:00
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 ];
};
}