mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
6b2a05e190
treewide: use toString on list NIX_CFLAGS_COMPILE treewide: move NIX_CFLAGS_COMPILE to the env attrset
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, pkg-config, 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 = [ pkg-config ];
|
|
buildInputs = [
|
|
perl
|
|
libparserutils
|
|
libwapcaplet
|
|
buildsystem ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=implicit-fallthrough" "-Wno-error=maybe-uninitialized" ];
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|