From ba26339b35f4ec5461f044b9ac08a7c2be4143f3 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 19 Mar 2021 11:29:25 -0400 Subject: Add bearssl, gmni, and gmnisrv Eventually I'll just upstream these to nixpkgs-dev. I also want to make z into a gemini-compatible zettlekasten. All in due time. --- Biz/Bild/Deps/bearssl.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Biz/Bild/Deps/bearssl.nix (limited to 'Biz/Bild/Deps/bearssl.nix') diff --git a/Biz/Bild/Deps/bearssl.nix b/Biz/Bild/Deps/bearssl.nix new file mode 100644 index 0000000..bbede64 --- /dev/null +++ b/Biz/Bild/Deps/bearssl.nix @@ -0,0 +1,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; + }; +} -- cgit v1.2.3