fix type; add picotls and picoquic

This commit is contained in:
Christian Ulrich 2020-10-27 21:45:46 +01:00
parent b307df5859
commit 7480f16b6a
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
3 changed files with 94 additions and 1 deletions

View File

@ -17,7 +17,11 @@ self: super:
easyhid = super.callPackage ./pkgs/easyhid/default.nix { };
openphone = super.callPackage ./pkgs/openphone/default.nix { };
nim = super.callPackages ./pkgs/nim/default.nix { };
nim = super.callPackage ./pkgs/nim/default.nix { };
picotls = super.callPackage ./pkgs/picotls/default.nix { };
picoquic = super.callPackage ./pkgs/picoquic/default.nix { };
shinto-cli = super.callPackage ./pkgs/shinto-cli { };

39
pkgs/picoquic/default.nix Normal file
View File

@ -0,0 +1,39 @@
{ stdenv
, cmake
, openssl
, picotls
, pkgconfig
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "picoquic";
version = "20201023";
src = fetchFromGitHub {
owner = "private-octopus";
repo = "picoquic";
rev = "5ba6123c5a78ab3238bc11f3310d169cd0bc5234";
sha256 = "1f8xwkn59wvrfxxfvx23lg8cx73vzmddswvf6ydd724cpc8g62jd";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [
cmake
pkgconfig
picotls
];
buildInputs = [
openssl
];
meta = with stdenv.lib; {
description = "Minimalist implementation of the QUIC protocol, as defined by the IETF";
homepage = https://github.com/private-octopus/picoquic;
license = licenses.mit;
maintainers = with maintainers; [ royneary ];
platforms = platforms.linux;
};
}

50
pkgs/picotls/default.nix Normal file
View File

@ -0,0 +1,50 @@
{ stdenv
, cmake
, brotli
, openssl
, pkgconfig
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "picotls";
version = "20201012";
src = fetchFromGitHub {
owner = "h2o";
repo = "picotls";
rev = "9238121fa7788e8642072b6d4d1a2f2fb71db242";
sha256 = "01hl9s2jxh792kfzhc12ha9x1wwk9g869k6n4m83cccdnkmghg8j";
fetchSubmodules = true;
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [
cmake
pkgconfig
brotli
];
buildInputs = [
openssl
];
installPhase = ''
runHook preInstall
install -Dt $out/lib *.a
install -Dt $dev/include ../include/*.h
install -Dt $dev/include/picotls ../include/picotls/*.h
runHook postInstall
'';
meta = with stdenv.lib; {
description = "Picotls is a TLS 1.3 (RFC 8446) protocol stack written in C";
homepage = https://github.com/h2o/picotls;
license = licenses.mit;
maintainers = with maintainers; [ royneary ];
platforms = platforms.linux;
};
}