fix picotls package

This commit is contained in:
Christian Ulrich 2020-11-17 22:00:39 +01:00
parent b3bd82f678
commit 9d5fb2cb4c
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 17 additions and 1 deletions

View File

@ -6,6 +6,14 @@
, fetchFromGitHub
}:
let
picotest = fetchFromGitHub {
owner = "h2o";
repo = "picotest";
rev = "6906d90b39684b8b2c18db5b0c7412128140655d";
sha256 = "1z26mcg40bkrgbxgh4469y97lixls00p75k9j9dw1w18bg8mg49n";
};
in
stdenv.mkDerivation rec {
pname = "picotls";
version = "20201012";
@ -14,7 +22,7 @@ stdenv.mkDerivation rec {
owner = "h2o";
repo = "picotls";
rev = "9238121fa7788e8642072b6d4d1a2f2fb71db242";
sha256 = "01hl9s2jxh792kfzhc12ha9x1wwk9g869k6n4m83cccdnkmghg8j";
sha256 = "0yam62yd606q8v515r74l110gmch4i4bif9hfxn7mgvcdv979l7d";
};
outputs = [ "out" "dev" ];
@ -29,6 +37,14 @@ stdenv.mkDerivation rec {
openssl
];
patchPhase = ''
sed -i 's|deps/picotest|${picotest}|g' CMakeLists.txt
sed -i 's|../deps/picotest|${picotest}|g' t/picotls.c
sed -i 's|../deps/picotest|${picotest}|g' t/minicrypto.c
sed -i 's|../deps/picotest|${picotest}|g' t/openssl.c
sed -i 's|../deps/picotest|${picotest}|g' t/fusion.c
'';
installPhase = ''
runHook preInstall