summaryrefslogtreecommitdiff
path: root/Biz/Bild/Deps/bearssl.nix
blob: bbede64d5137e7a62bc1131cadbcd9302a942eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{stdenv, fetchgit }:

stdenv.mkDerivation rec {
  name = "bearssl-2021-01-27";
  version = "79b1a9996c094ff593ae50bc4edc1f349f39dd6d";
  src = fetchgit {
    url = "https://www.bearssl.org/git/BearSSL";
    rev = version;
    sha256 = "0iljfg575g2n4jw6mjfi1xk749pnhsg9zpskqs0kvzch5hn5cvlf";
  };
  installPhase = ''
    mkdir -p $out/{include,lib,bin}
    cp inc/* $out/include
    cp build/libbearssl.a $out/lib/libbearssl.a
    cp build/brssl $out/bin/brssl
  '';
  meta = with stdenv.lib; {
    description = "An implementation of the SSL/TLS protocol in C";
    homepage = "https://bearssl.org/";
    license = licenses.mit;
    maintainers = with maintainers; [ bsima ];
    platforms = platforms.all;
  };
}