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