diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2020-09-28 03:35:38 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2020-09-28 22:39:17 -0300 |
commit | d6d7ead024395125982934e3d21832a5a92df72f (patch) | |
tree | 0c2766e6bd4e275a558a72f6225b20b25479c9d5 /pkgs/applications/networking/browsers | |
parent | d5832afa3e0249ce77f012c2d9419b16ae757c29 (diff) |
Netsurf libcss: 0.9.0 -> 0.9.1
Diffstat (limited to 'pkgs/applications/networking/browsers')
-rw-r--r-- | pkgs/applications/networking/browsers/netsurf/default.nix | 1 | ||||
-rw-r--r-- | pkgs/applications/networking/browsers/netsurf/libcss.nix | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/netsurf/default.nix b/pkgs/applications/networking/browsers/netsurf/default.nix index 7c5b98a7ea6a7..25ef6c048ee91 100644 --- a/pkgs/applications/networking/browsers/netsurf/default.nix +++ b/pkgs/applications/networking/browsers/netsurf/default.nix @@ -2,6 +2,7 @@ lib.makeScope pkgs.newScope (self: with self; { buildsystem = callPackage ./buildsystem.nix { }; + libcss = callPackage ./libcss.nix { }; libnsbmp = callPackage ./libnsbmp.nix { }; libnsgif = callPackage ./libnsgif.nix { }; libnslog = callPackage ./libnslog.nix { }; diff --git a/pkgs/applications/networking/browsers/netsurf/libcss.nix b/pkgs/applications/networking/browsers/netsurf/libcss.nix new file mode 100644 index 0000000000000..db907edd8799d --- /dev/null +++ b/pkgs/applications/networking/browsers/netsurf/libcss.nix @@ -0,0 +1,44 @@ +{ stdenv, fetchurl, pkgconfig, perl +, buildsystem +, libparserutils +, libwapcaplet +}: + +stdenv.mkDerivation rec { + pname = "netsurf-${libname}"; + libname = "libcss"; + version = "0.9.1"; + + src = fetchurl { + url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz"; + sha256 = "sha256-0tzhbpM5Lo1qcglCDUfC1Wo4EXAaDoGnJPxUHGPTxtw="; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ + perl + libparserutils + libwapcaplet + buildsystem ]; + + makeFlags = [ + "PREFIX=$(out)" + "NSSHARED=${buildsystem}/share/netsurf-buildsystem" + ]; + + NIX_CFLAGS_COMPILE= "-Wno-error=implicit-fallthrough"; + + meta = with stdenv.lib; { + homepage = "https://www.netsurf-browser.org/projects/${libname}/"; + description = "Cascading Style Sheets library for netsurf browser"; + longDescription = '' + LibCSS is a CSS parser and selection engine. It aims to parse the forward + compatible CSS grammar. It was developed as part of the NetSurf project + and is available for use by other software, under a more permissive + license. + ''; + license = licenses.mit; + maintainers = [ maintainers.vrthra maintainers.AndersonTorres ]; + platforms = platforms.linux; + }; +} |