nixpkgs/pkgs/applications/networking/browsers/netsurf/libcss.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.2 KiB
Nix
Raw Normal View History

2023-07-22 15:29:54 +00:00
{ lib
, stdenv
, fetchurl
, perl
, pkg-config
2016-06-22 05:29:59 +00:00
, buildsystem
, libparserutils
2020-09-28 06:35:38 +00:00
, libwapcaplet
2016-06-22 05:29:59 +00:00
}:
2023-07-22 15:29:54 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "netsurf-libcss";
2020-09-28 06:35:38 +00:00
version = "0.9.1";
2016-06-22 05:29:59 +00:00
src = fetchurl {
2023-07-22 15:29:54 +00:00
url = "http://download.netsurf-browser.org/libs/releases/libcss-${finalAttrs.version}-src.tar.gz";
hash = "sha256-0tzhbpM5Lo1qcglCDUfC1Wo4EXAaDoGnJPxUHGPTxtw=";
2016-06-22 05:29:59 +00:00
};
nativeBuildInputs = [ pkg-config ];
2023-07-22 15:29:54 +00:00
2020-09-28 06:35:38 +00:00
buildInputs = [
perl
2023-07-22 15:29:54 +00:00
buildsystem
2016-06-22 05:29:59 +00:00
libparserutils
2020-09-28 06:35:38 +00:00
libwapcaplet
2023-07-22 15:29:54 +00:00
];
2016-06-22 05:29:59 +00:00
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
];
2023-07-22 15:29:54 +00:00
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-fallthrough"
"-Wno-error=maybe-uninitialized"
];
2023-07-22 15:29:54 +00:00
meta = {
homepage = "https://www.netsurf-browser.org/projects/libcss/";
2016-06-22 05:29:59 +00:00
description = "Cascading Style Sheets library for netsurf browser";
2020-09-28 06:35:38 +00: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.
'';
2023-07-22 15:29:54 +00:00
license = lib.licenses.mit;
inherit (buildsystem.meta) maintainers platforms;
2016-06-22 05:29:59 +00:00
};
2023-07-22 15:29:54 +00:00
})