2019-07-25 02:06:10 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, bison, flex
|
|
|
|
, buildsystem
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-28 07:10:13 +01:00
|
|
|
pname = "netsurf-${libname}";
|
2019-07-25 02:06:10 +01:00
|
|
|
libname = "libnslog";
|
2020-09-28 07:10:13 +01:00
|
|
|
version = "0.1.3";
|
2019-07-25 02:06:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
2020-09-28 07:10:13 +01:00
|
|
|
sha256 = "sha256-/JjcqdfvpnCWRwpdlsAjFG4lv97AjA23RmHHtNsEU9A=";
|
2019-07-25 02:06:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig bison flex ];
|
2020-09-28 07:10:13 +01:00
|
|
|
buildInputs = [ buildsystem ];
|
2019-07-25 02:06:10 +01:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-09-28 07:10:13 +01:00
|
|
|
homepage = "https://www.netsurf-browser.org/";
|
2019-07-25 02:06:10 +01:00
|
|
|
description = "NetSurf Parametric Logging Library";
|
2020-09-28 07:10:13 +01:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.samueldr maintainers.AndersonTorres ];
|
2019-07-25 02:06:10 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|