Netsurf browser: 3.9 -> 3.10

This commit is contained in:
AndersonTorres 2020-09-28 03:50:11 -03:00
parent 66fac9a0bf
commit 3072952295
2 changed files with 21 additions and 26 deletions

View File

@ -1,25 +1,21 @@
{ stdenv, fetchurl, fetchpatch, makeWrapper, wrapGAppsHook
# Buildtime dependencies.
, check, pkgconfig, xxd
# Runtime dependencies.
, curl, expat, libXcursor, libXrandr, libidn, libjpeg, libpng, libwebp, libxml2
, openssl, perl, perlPackages
# uilib-specific dependencies
, gtk2 # GTK 2
, gtk3 # GTK 3
, SDL # Framebuffer
# Configuration
, uilib ? "framebuffer"
, uilib
# Netsurf-specific dependencies
, libcss, libdom, libhubbub, libnsbmp, libnsfb, libnsgif
, libnslog, libnspsl, libnsutils, libparserutils, libsvgtiny, libutf8proc
, libwapcaplet, nsgenbind
@ -29,24 +25,14 @@ let
inherit (stdenv.lib) optional optionals;
in
stdenv.mkDerivation rec {
pname = "netsurf";
version = "3.9";
version = "3.10";
src = fetchurl {
url = "http://download.netsurf-browser.org/netsurf/releases/source/netsurf-${version}-src.tar.gz";
sha256 = "1hzcm2s2wh5sapgr000lg63hcdbj6hyajxl43xa1x80kc5piqbyp";
url = "http://download.netsurf-browser.org/netsurf/releases/source/${pname}-${version}-src.tar.gz";
sha256 = "sha256-NkhEKeGTYUaFwv8kb1W9Cm3d8xoBi+5F4NH3wohRmV4=";
};
patches = [
# GTK: prefer using curl's intrinsic defaults for CURLOPT_CA*
(fetchpatch {
name = "0001-GTK-prefer-using-curl-s-intrinsic-defaults-for-CURLO.patch";
url = "http://source.netsurf-browser.org/netsurf.git/patch/?id=87177d8aa109206d131e0d80a2080ce55dab01c7";
sha256 = "08bc60pc5k5qpckqv21zgmgszj3rpwskfc84shs8vg92vkimv2ai";
})
];
nativeBuildInputs = [
makeWrapper
perl
@ -54,10 +40,10 @@ stdenv.mkDerivation rec {
pkgconfig
xxd
]
++ optional (uilib == "gtk") wrapGAppsHook
++ optional (uilib == "gtk2" || uilib == "gtk3") wrapGAppsHook
;
buildInputs = [
buildInputs = [
check curl libXcursor libXrandr libidn libjpeg libpng libwebp libxml2 openssl
# Netsurf-specific libraries
nsgenbind libnsfb libwapcaplet libparserutils libnslog libcss
@ -65,7 +51,8 @@ stdenv.mkDerivation rec {
libutf8proc
]
++ optionals (uilib == "framebuffer") [ expat SDL ]
++ optional (uilib == "gtk") gtk2
++ optional (uilib == "gtk2") gtk2
++ optional (uilib == "gtk3") gtk3
;
preConfigure = ''
@ -81,10 +68,16 @@ stdenv.mkDerivation rec {
];
meta = with stdenv.lib; {
homepage = "http://www.netsurf-browser.org/";
description = "Free opensource web browser";
license = licenses.gpl2;
maintainers = [ maintainers.vrthra ];
homepage = "https://www.netsurf-browser.org/";
description = "A free, open source, small web browser";
longDescription = ''
NetSurf is a free, open source web browser. It is written in C and
released under the GNU Public Licence version 2. NetSurf has its own
layout and rendering engine entirely written from scratch. It is small and
capable of handling many of the web standards in use today.
'';
license = licenses.gpl2Only;
maintainers = [ maintainers.vrthra maintainers.AndersonTorres ];
platforms = platforms.linux;
};
}

View File

@ -16,6 +16,8 @@ lib.makeScope pkgs.newScope (self: with self; {
else if ui == "framebuffer" then pkgs.SDL
else null;
browser = callPackage ./browser.nix { };
buildsystem = callPackage ./buildsystem.nix { };
libcss = callPackage ./libcss.nix { };
libdom = callPackage ./libdom.nix { };