2016-06-22 05:29:59 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, perl
|
|
|
|
, buildsystem
|
|
|
|
, libwapcaplet
|
|
|
|
, libparserutils
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "netsurf-${libname}-${version}";
|
|
|
|
libname = "libcss";
|
|
|
|
version = "0.6.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
|
|
|
sha256 = "0qp4p1q1dwgdra4pkrzd081zjzisxkgwx650ijx323j8bj725daf";
|
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ perl
|
2016-06-22 05:29:59 +00:00
|
|
|
buildsystem
|
|
|
|
libwapcaplet
|
|
|
|
libparserutils
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
];
|
|
|
|
|
2018-03-14 11:06:46 +00:00
|
|
|
NIX_CFLAGS_COMPILE=[ "-Wno-error=implicit-fallthrough" ];
|
|
|
|
|
2016-06-22 05:29:59 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://www.netsurf-browser.org/;
|
2016-06-22 05:29:59 +00:00
|
|
|
description = "Cascading Style Sheets library for netsurf browser";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.vrthra ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|