2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkgconfig, perl
|
2016-06-22 06:29:59 +01:00
|
|
|
, buildsystem
|
|
|
|
, libparserutils
|
2020-09-28 07:35:38 +01:00
|
|
|
, libwapcaplet
|
2016-06-22 06:29:59 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-28 07:35:38 +01:00
|
|
|
pname = "netsurf-${libname}";
|
2016-06-22 06:29:59 +01:00
|
|
|
libname = "libcss";
|
2020-09-28 07:35:38 +01:00
|
|
|
version = "0.9.1";
|
2016-06-22 06:29:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
2020-09-28 07:35:38 +01:00
|
|
|
sha256 = "sha256-0tzhbpM5Lo1qcglCDUfC1Wo4EXAaDoGnJPxUHGPTxtw=";
|
2016-06-22 06:29:59 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-09-28 07:35:38 +01:00
|
|
|
buildInputs = [
|
|
|
|
perl
|
2016-06-22 06:29:59 +01:00
|
|
|
libparserutils
|
2020-09-28 07:35:38 +01:00
|
|
|
libwapcaplet
|
|
|
|
buildsystem ];
|
2016-06-22 06:29:59 +01:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
];
|
|
|
|
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE= "-Wno-error=implicit-fallthrough";
|
2018-03-14 11:06:46 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-28 07:35:38 +01:00
|
|
|
homepage = "https://www.netsurf-browser.org/projects/${libname}/";
|
2016-06-22 06:29:59 +01:00
|
|
|
description = "Cascading Style Sheets library for netsurf browser";
|
2020-09-28 07:35:38 +01:00
|
|
|
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 ];
|
2016-06-22 06:29:59 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|