···
# https://gitlab.com/ubports/development/core/lib-cpp/net-cpp/-/issues/5
···
22
+
writableTmpDirAsHomeHook,
···
stdenv.mkDerivation (finalAttrs: {
repo = "development/core/lib-cpp/net-cpp";
rev = finalAttrs.version;
39
-
hash = "sha256-MSqdP3kGI9hDdxFv2a0yd5ZkFkf1lMurB+KDIZLR9jg=";
40
+
hash = "sha256-JfVSAwBWtHw7a0CtY5C1xuxThO3FbS4MgNuIO1CGuts=";
···
49
-
# Be more lenient with how quickly HTTP test server must be up, for slower hardware / archs
51
-
url = "https://salsa.debian.org/ubports-team/net-cpp/-/raw/941d9eceaa66a06eabb1eb79554548b47d4a60ab/debian/patches/1007_wait-for-flask.patch";
52
-
hash = "sha256-nsGkZBuqahsg70PLUxn5EluDjmfZ0/wSnOYimfAI4ag=";
55
-
# Bump std version to 14 for gtest 1.13+
57
-
url = "https://salsa.debian.org/ubports-team/net-cpp/-/raw/f3a031eb7e4ce7df00781100f16de58a4709afcb/debian/patches/0001-Bump-std-version-to-14-needed-for-googletest-1.13.0.patch";
58
-
hash = "sha256-3ykqCfZjtTx7zWQ5rkMhVp7D5fkpoCjl0CVFwwEd4U4=";
61
-
# Fix newer flask rejecting large chunks by default
63
-
url = "https://salsa.debian.org/ubports-team/net-cpp/-/raw/f2050b5318cba3860fa1042e9b81e1b792b972c4/debian/patches/1008_set-MAX-CONTENT-LENGTH-for-flask-server-to-let-it-accept-big-chunks-of-data.patch";
64
-
hash = "sha256-lfMRjpmysrhzdG6OOSpBGvYJCi1hrERI/SRf+rAakbA=";
postPatch = lib.optionalString finalAttrs.finalPackage.doCheck ''
# Use wrapped python. Removing just the /usr/bin doesn't seem to work?
substituteInPlace tests/httpbin.h.in \
···
62
+
writableTmpDirAsHomeHook # makes doc generation quieter
···
102
-
# https://gitlab.com/ubports/development/core/lib-cpp/net-cpp/-/issues/4
103
-
(lib.cmakeBool "ENABLE_WERROR" false)
84
+
(lib.cmakeBool "ENABLE_WERROR" true)
87
+
env.FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
# Tests start HTTP server in separate process with fixed URL, parallelism breaks things
···
updateScript = gitUpdater { };
description = "Simple yet beautiful networking API for C++11";
homepage = "https://gitlab.com/ubports/development/core/lib-cpp/net-cpp";
changelog = "https://gitlab.com/ubports/development/core/lib-cpp/net-cpp/-/blob/${finalAttrs.version}/ChangeLog";
120
-
license = licenses.lgpl3Only;
121
-
teams = [ teams.lomiri ];
122
-
platforms = platforms.linux;
103
+
license = lib.licenses.lgpl3Only;
104
+
teams = [ lib.teams.lomiri ];
105
+
platforms = lib.platforms.linux;