diff --git a/pkgs/development/libraries/cairo/default.nix b/pkgs/development/libraries/cairo/default.nix index 7c0664533b8f..8f7a04cbb68f 100644 --- a/pkgs/development/libraries/cairo/default.nix +++ b/pkgs/development/libraries/cairo/default.nix @@ -10,14 +10,14 @@ assert glSupport -> libGL != null; let - version = "1.15.14"; + version = "1.16.0"; inherit (stdenv.lib) optional optionals; in stdenv.mkDerivation rec { name = "cairo-${version}"; src = fetchurl { url = "https://cairographics.org/${if stdenv.lib.mod (builtins.fromJSON (stdenv.lib.versions.minor version)) 2 == 0 then "releases" else "snapshots"}/${name}.tar.xz"; - sha256 = "1399jfdpdhn4hf812hxlj1gyi3bznxwzhp2rnyq1nxjs05n6nmhn"; + sha256 = "0c930mk5xr2bshbdljv005j3j8zr47gqmkry3q6qgvqky6rjjysy"; }; outputs = [ "out" "dev" "devdoc" ]; diff --git a/pkgs/development/libraries/nghttp2/default.nix b/pkgs/development/libraries/nghttp2/default.nix index e1b4067b5c36..d4c859db2899 100644 --- a/pkgs/development/libraries/nghttp2/default.nix +++ b/pkgs/development/libraries/nghttp2/default.nix @@ -25,6 +25,8 @@ stdenv.mkDerivation rec { sha256 = "1l5rir8d73x97p3p1x4l8cawjc9m2adnippnb27fmrbcd3rfaxbl"; }; + patches = [ ./fix-stream-operator.patch /* can't fetchpatch during bootstrap */ ]; + outputs = [ "bin" "out" "dev" "lib" ]; nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/nghttp2/fix-stream-operator.patch b/pkgs/development/libraries/nghttp2/fix-stream-operator.patch new file mode 100644 index 000000000000..7d8acde8ebc8 --- /dev/null +++ b/pkgs/development/libraries/nghttp2/fix-stream-operator.patch @@ -0,0 +1,63 @@ +From 153531d4d0ebe00ac95047dbf1fec1d9d694f29f Mon Sep 17 00:00:00 2001 +From: Tatsuhiro Tsujikawa +Date: Sun, 7 Oct 2018 22:19:00 +0900 +Subject: [PATCH] nghttpx: Use the same type as standard stream operator<< + +--- + src/shrpx_log.cc | 4 ++-- + src/shrpx_log.h | 20 ++++++++++++++------ + 2 files changed, 16 insertions(+), 8 deletions(-) + +diff --git a/src/shrpx_log.cc b/src/shrpx_log.cc +index 8459d15e3..6966cf945 100644 +--- a/src/shrpx_log.cc ++++ b/src/shrpx_log.cc +@@ -228,7 +228,7 @@ Log &Log::operator<<(const ImmutableString &s) { + return *this; + } + +-Log &Log::operator<<(int64_t n) { ++Log &Log::operator<<(long long n) { + if (n >= 0) { + return *this << static_cast(n); + } +@@ -262,7 +262,7 @@ Log &Log::operator<<(int64_t n) { + return *this; + } + +-Log &Log::operator<<(uint64_t n) { ++Log &Log::operator<<(unsigned long long n) { + if (flags_ & fmt_hex) { + write_hex(n); + return *this; +diff --git a/src/shrpx_log.h b/src/shrpx_log.h +index 1130b8da8..17b90536e 100644 +--- a/src/shrpx_log.h ++++ b/src/shrpx_log.h +@@ -100,12 +100,20 @@ class Log { + Log &operator<<(const char *s); + Log &operator<<(const StringRef &s); + Log &operator<<(const ImmutableString &s); +- Log &operator<<(int16_t n) { return *this << static_cast(n); } +- Log &operator<<(int32_t n) { return *this << static_cast(n); } +- Log &operator<<(int64_t n); +- Log &operator<<(uint16_t n) { return *this << static_cast(n); } +- Log &operator<<(uint32_t n) { return *this << static_cast(n); } +- Log &operator<<(uint64_t n); ++ Log &operator<<(short n) { return *this << static_cast(n); } ++ Log &operator<<(int n) { return *this << static_cast(n); } ++ Log &operator<<(long n) { return *this << static_cast(n); } ++ Log &operator<<(long long n); ++ Log &operator<<(unsigned short n) { ++ return *this << static_cast(n); ++ } ++ Log &operator<<(unsigned int n) { ++ return *this << static_cast(n); ++ } ++ Log &operator<<(unsigned long n) { ++ return *this << static_cast(n); ++ } ++ Log &operator<<(unsigned long long n); + Log &operator<<(float n) { return *this << static_cast(n); } + Log &operator<<(double n); + Log &operator<<(long double n);