use picotls.src from picotls package; remove unneeded escaping
This commit is contained in:
parent
e86c37422b
commit
63e81bf7d9
|
@ -2,17 +2,11 @@
|
|||
, cmake
|
||||
, openssl
|
||||
, perl
|
||||
, picotls
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
let
|
||||
picotls = fetchFromGitHub {
|
||||
owner = "h2o";
|
||||
repo = "picotls";
|
||||
rev = "9238121fa7788e8642072b6d4d1a2f2fb71db242";
|
||||
sha256 = "0yam62yd606q8v515r74l110gmch4i4bif9hfxn7mgvcdv979l7d";
|
||||
};
|
||||
|
||||
picotest = fetchFromGitHub {
|
||||
owner = "h2o";
|
||||
repo = "picotest";
|
||||
|
@ -50,11 +44,11 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's|''${CMAKE_SOURCE_DIR}/deps/picotls|${picotls}|g' CMakeLists.txt
|
||||
sed -i 's|''${CMAKE_SOURCE_DIR}/deps/picotls|${picotls.src}|g' CMakeLists.txt
|
||||
sed -i 's|deps/klib|${klib}|g' CMakeLists.txt
|
||||
sed -i 's|deps/picotls|${picotls}|g' CMakeLists.txt
|
||||
sed -i 's|deps/picotls|${picotls.src}|g' CMakeLists.txt
|
||||
sed -i 's|deps/picotest|${picotest}|g' CMakeLists.txt
|
||||
sed -i 's|\.\./deps/picotls|${picotls}|g' src/cli.c
|
||||
sed -i 's|../deps/picotls|${picotls.src}|g' src/cli.c
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
Loading…
Reference in New Issue