diff --git a/pkgs/applications/graphics/imv/default.nix b/pkgs/applications/graphics/imv/default.nix index 044814c88a1c..f71b0362d2de 100644 --- a/pkgs/applications/graphics/imv/default.nix +++ b/pkgs/applications/graphics/imv/default.nix @@ -16,7 +16,8 @@ , libxkbcommon , libGLU , wayland -, withBackends ? [ "freeimage" "libtiff" "libjpeg" "libpng" "librsvg" "libnsgif" "libheif" ] +# "libnsgif" is disabled until https://todo.sr.ht/~exec64/imv/55 is solved +, withBackends ? [ "freeimage" "libtiff" "libjpeg" "libpng" "librsvg" "libheif" ] , freeimage , libtiff , libjpeg_turbo diff --git a/pkgs/applications/networking/browsers/netsurf/browser.nix b/pkgs/applications/networking/browsers/netsurf/browser.nix index d9df75b00c2b..0297301096d6 100644 --- a/pkgs/applications/networking/browsers/netsurf/browser.nix +++ b/pkgs/applications/networking/browsers/netsurf/browser.nix @@ -5,12 +5,14 @@ , check , curl , expat +, gperf , gtk2 , gtk3 , libXcursor , libXrandr , libidn , libjpeg +, libjxl , libpng , libwebp , libxml2 @@ -44,11 +46,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "netsurf"; - version = "3.10"; + version = "3.11"; src = fetchurl { url = "http://download.netsurf-browser.org/netsurf/releases/source/netsurf-${finalAttrs.version}-src.tar.gz"; - hash = "sha256-NkhEKeGTYUaFwv8kb1W9Cm3d8xoBi+5F4NH3wohRmV4="; + hash = "sha256-wopiau/uQo0FOxP4i1xECSIkWXZSLRLq8TfP0y0gHLI="; }; nativeBuildInputs = [ @@ -63,10 +65,12 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ check curl + gperf libXcursor libXrandr libidn libjpeg + libjxl libpng libwebp libxml2 @@ -103,8 +107,20 @@ stdenv.mkDerivation (finalAttrs: { env.NIX_CFLAGS_COMPILE = "-fcommon"; + env.CFLAGS = lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE"; + + patchPhase = lib.optionalString stdenv.cc.isClang '' + runHook prePatch + + substituteInPlace Makefile \ + --replace-warn '--trace' '-t' \ + --replace-warn '-Wimplicit-fallthrough=3' '-Wimplicit-fallthrough' + + runHook postPatch + ''; + preConfigure = '' - cat < Makefile.conf + cat < Makefile.config override NETSURF_GTK_RES_PATH := $out/share/ override NETSURF_USE_GRESOURCE := YES EOF diff --git a/pkgs/applications/networking/browsers/netsurf/libcss.nix b/pkgs/applications/networking/browsers/netsurf/libcss.nix index 66a3a4057d85..4b54f013449b 100644 --- a/pkgs/applications/networking/browsers/netsurf/libcss.nix +++ b/pkgs/applications/networking/browsers/netsurf/libcss.nix @@ -10,11 +10,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "netsurf-libcss"; - version = "0.9.1"; + version = "0.9.2"; src = fetchurl { url = "http://download.netsurf-browser.org/libs/releases/libcss-${finalAttrs.version}-src.tar.gz"; - hash = "sha256-0tzhbpM5Lo1qcglCDUfC1Wo4EXAaDoGnJPxUHGPTxtw="; + hash = "sha256-LfIVu+w01R1gwaBLAbLfTV0Y9RDx86evS4DN21ZxFU4="; }; nativeBuildInputs = [ pkg-config ]; @@ -33,7 +33,7 @@ stdenv.mkDerivation (finalAttrs: { env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=implicit-fallthrough" - "-Wno-error=maybe-uninitialized" + "-Wno-error=${if stdenv.cc.isGNU then "maybe-uninitialized" else "uninitialized"}" ]; meta = { diff --git a/pkgs/applications/networking/browsers/netsurf/libdom.nix b/pkgs/applications/networking/browsers/netsurf/libdom.nix index 328bed30f17d..2f198021fafb 100644 --- a/pkgs/applications/networking/browsers/netsurf/libdom.nix +++ b/pkgs/applications/networking/browsers/netsurf/libdom.nix @@ -11,11 +11,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "netsurf-libdom"; - version = "0.4.1"; + version = "0.4.2"; src = fetchurl { url = "http://download.netsurf-browser.org/libs/releases/libdom-${finalAttrs.version}-src.tar.gz"; - hash = "sha256-mO4HJHHlXiCMmHjlFcQQrUYso2+HtK/L7K0CPzos70o="; + hash = "sha256-0F5FrxZUcBTCsKOuzzZw+hPUGfUFs/X8esihSR/DDzw="; }; nativeBuildInputs = [ pkg-config ]; diff --git a/pkgs/applications/networking/browsers/netsurf/libhubbub.nix b/pkgs/applications/networking/browsers/netsurf/libhubbub.nix index 29a312928092..5847fd21d2ae 100644 --- a/pkgs/applications/networking/browsers/netsurf/libhubbub.nix +++ b/pkgs/applications/networking/browsers/netsurf/libhubbub.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchurl +, gperf , perl , pkg-config , buildsystem @@ -9,16 +10,17 @@ stdenv.mkDerivation (finalAttrs: { pname = "netsurf-libhubbub"; - version = "0.3.7"; + version = "0.3.8"; src = fetchurl { url = "http://download.netsurf-browser.org/libs/releases/libhubbub-${finalAttrs.version}-src.tar.gz"; - hash = "sha256-nnriU+bJBp51frmtTkhG84tNtSwMoBUURqn6Spd3NbY="; + hash = "sha256-isHm9fPUjAUUHVk5FxlTQpDFnNAp78JJ60/brBAs1aU="; }; nativeBuildInputs = [ pkg-config ]; buildInputs = [ + gperf perl buildsystem libparserutils diff --git a/pkgs/applications/networking/browsers/netsurf/libnsbmp.nix b/pkgs/applications/networking/browsers/netsurf/libnsbmp.nix index 9ae8dafa1b0d..a0c1cf106288 100644 --- a/pkgs/applications/networking/browsers/netsurf/libnsbmp.nix +++ b/pkgs/applications/networking/browsers/netsurf/libnsbmp.nix @@ -7,11 +7,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "netsurf-libnsbmp"; - version = "0.1.6"; + version = "0.1.7"; src = fetchurl { url = "http://download.netsurf-browser.org/libs/releases/libnsbmp-${finalAttrs.version}-src.tar.gz"; - hash = "sha256-ecSTZfhg7UUb/EEJ7d7I3j6bfOWjvgaVlr0qoZJ5Mk8="; + hash = "sha256-VAenaCoSK6qqWhW1BSkOLTffVME8Xt70sJ0SyGLYIpM="; }; nativeBuildInputs = [ pkg-config ]; diff --git a/pkgs/applications/networking/browsers/netsurf/libnsgif.nix b/pkgs/applications/networking/browsers/netsurf/libnsgif.nix index 20c990448e77..0f57939e1700 100644 --- a/pkgs/applications/networking/browsers/netsurf/libnsgif.nix +++ b/pkgs/applications/networking/browsers/netsurf/libnsgif.nix @@ -8,11 +8,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "netsurf-libnsgif"; - version = "0.2.1"; + version = "1.0.0"; src = fetchurl { url = "http://download.netsurf-browser.org/libs/releases/libnsgif-${finalAttrs.version}-src.tar.gz"; - hash = "sha256-nq6lNM1wtTxar0UxeulXcBaFprSojb407Sb0+q6Hmks="; + hash = "sha256-YBTIQvYUVNL1oPgkPXqNe96bfaPM/cotNGx8CyxMBhs="; }; depsBuildBuild = [ buildPackages.stdenv.cc ]; diff --git a/pkgs/applications/networking/browsers/netsurf/libnsutils.nix b/pkgs/applications/networking/browsers/netsurf/libnsutils.nix index 80e883e4b244..141117a94f70 100644 --- a/pkgs/applications/networking/browsers/netsurf/libnsutils.nix +++ b/pkgs/applications/networking/browsers/netsurf/libnsutils.nix @@ -7,11 +7,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "netsurf-libnsutils"; - version = "0.1.0"; + version = "0.1.1"; src = fetchurl { url = "http://download.netsurf-browser.org/libs/releases/libnsutils-${finalAttrs.version}-src.tar.gz"; - hash = "sha256-eQxlFjRKvoL2KJ1lY5LpzOvkdbIMx+Hi2EMBE4X3rvA="; + hash = "sha256-VpS0Um5FjtAAQTzmAnWJy+EKJXp+zwZaAUIdxymd6pI="; }; nativeBuildInputs = [ pkg-config ]; diff --git a/pkgs/applications/networking/browsers/netsurf/libparserutils.nix b/pkgs/applications/networking/browsers/netsurf/libparserutils.nix index 411495b8e215..a7db88925768 100644 --- a/pkgs/applications/networking/browsers/netsurf/libparserutils.nix +++ b/pkgs/applications/networking/browsers/netsurf/libparserutils.nix @@ -3,20 +3,22 @@ , fetchurl , perl , buildsystem +, iconv }: stdenv.mkDerivation (finalAttrs: { pname = "netsurf-libparserutils"; - version = "0.2.4"; + version = "0.2.5"; src = fetchurl { url = "http://download.netsurf-browser.org/libs/releases/libparserutils-${finalAttrs.version}-src.tar.gz"; - hash = "sha256-MiuuYbMMzt4+MFv26uJBSSBkl3W8X/HRtogBKjxJR9g="; + hash = "sha256-MX7VxxjxeSe1chl0uuXeMsP9bQVdsTGtMbQxKgMu0Tk="; }; buildInputs = [ perl buildsystem + iconv ]; makeFlags = [ diff --git a/pkgs/applications/networking/browsers/netsurf/libsvgtiny.nix b/pkgs/applications/networking/browsers/netsurf/libsvgtiny.nix index 19b523ce50ff..a672a7b7cde9 100644 --- a/pkgs/applications/networking/browsers/netsurf/libsvgtiny.nix +++ b/pkgs/applications/networking/browsers/netsurf/libsvgtiny.nix @@ -12,11 +12,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "netsurf-libsvgtiny"; - version = "0.1.7"; + version = "0.1.8"; src = fetchurl { url = "http://download.netsurf-browser.org/libs/releases/libsvgtiny-${finalAttrs.version}-src.tar.gz"; - hash = "sha256-LA3PlS8c2ILD6VQB75RZ8W27U8XT5FEjObL563add4E="; + hash = "sha256-w1cifwLoP7KnaxK5ARkaCCIp2x8Ac2Lo8xx1RRDCoBw="; }; nativeBuildInputs = [