git.iko.soy/typeable/nixpkgs
on master help sign in
bearssl: init at 0.6
commitcda3ea1b7283448d3116212a377b79c45569352c authorProfpatsch <mail@profpatsch.de> dateSun 21 Mar 2021, 19:46 (6 years ago) parent335412e
2 files changed+63
pkgs/development/libraries/bearssl/default.nix+61 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/bearssl/default.nixnew file+61
@@ -0,0 +1,61 @@
1+{ lib, stdenv, fetchurl }:
2+
3+let
4+ version = "0.6";
5+ sha256 = "057zhgy9w4y8z2996r0pq5k2k39lpvmmvz4df8db8qa9f6hvn1b7";
6+
7+in
8+stdenv.mkDerivation {
9+ pname = "bearssl";
10+ inherit version;
11+
12+ src = fetchurl {
13+ url = "https://www.bearssl.org/bearssl-${version}.tar.gz";
14+ inherit sha256;
15+ };
16+
17+ outputs = [ "bin" "lib" "dev" "out" ];
18+
19+ enableParallelBuilding = true;
20+
21+ installPhase = ''
22+ runHook preInstall
23+ install -D build/brssl $bin/brssl
24+ install -D build/testcrypto $bin/testcrypto
25+ install -Dm644 build/libbearssl.so $lib/lib/libbearssl.so
26+ install -Dm644 build/libbearssl.a $lib/lib/libbearssl.a
27+ install -Dm644 -t $dev/include inc/*.h
28+ touch $out
29+ runHook postInstall
30+ '';
31+
32+ meta = {
33+ homepage = "https://www.bearssl.org/";
34+ description = "An implementation of the SSL/TLS protocol written in C";
35+ longDescription = ''
36+ BearSSL is an implementation of the SSL/TLS protocol (RFC 5246)
37+ written in C. It aims at offering the following features:
38+
39+ * Be correct and secure. In particular, insecure protocol versions and
40+ choices of algorithms are not supported, by design; cryptographic
41+ algorithm implementations are constant-time by default.
42+
43+ * Be small, both in RAM and code footprint. For instance, a minimal
44+ server implementation may fit in about 20 kilobytes of compiled code
45+ and 25 kilobytes of RAM.
46+
47+ * Be highly portable. BearSSL targets not only “big” operating systems
48+ like Linux and Windows, but also small embedded systems and even
49+ special contexts like bootstrap code.
50+
51+ * Be feature-rich and extensible. SSL/TLS has many defined cipher
52+ suites and extensions; BearSSL should implement most of them, and
53+ allow extra algorithm implementations to be added afterwards,
54+ possibly from third parties.
55+ '';
56+ license = lib.licenses.mit;
57+ platforms = lib.platforms.all;
58+ maintainers = [ lib.maintainers.Profpatsch ];
59+ };
60+
61+}
pkgs/top-level/all-packages.nix+2
@@ -13505,6 +13505,8 @@ in
1350513505
1350613506 bctoolbox = callPackage ../development/libraries/bctoolbox { };
1350713507
13508+ bearssl = callPackage ../development/libraries/bearssl { };
13509+
1350813510 beecrypt = callPackage ../development/libraries/beecrypt { };
1350913511
1351013512 belcard = callPackage ../development/libraries/belcard { };