2016-06-29 23:10:35 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, uilib? "framebuffer", SDL
|
2016-06-22 07:35:16 +02:00
|
|
|
, buildsystem
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "netsurf-${libname}-${version}";
|
|
|
|
libname = "libnsfb";
|
2019-07-25 02:09:35 +02:00
|
|
|
version = "0.2.1";
|
2016-06-22 07:35:16 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
2019-07-25 02:09:35 +02:00
|
|
|
sha256 = "09qag9lgn5ahanbcyf2rvfmsz15vazfwnl8xpn8f1iczd44b0bv0";
|
2016-06-22 07:35:16 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ buildsystem SDL ];
|
2016-06-22 07:35:16 +02:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
2016-06-29 23:10:35 +02:00
|
|
|
"TARGET=${uilib}"
|
2016-06-22 07:35:16 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.netsurf-browser.org/;
|
2016-06-22 07:35:16 +02:00
|
|
|
description = "CSS parser and selection library for netsurf browser";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.vrthra ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|