2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2019-07-25 03:06:59 +02:00
|
|
|
, buildsystem
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-28 08:19:39 +02:00
|
|
|
pname = "netsurf-${libname}";
|
2019-07-25 03:06:59 +02:00
|
|
|
libname = "libnspsl";
|
2020-09-28 08:19:39 +02:00
|
|
|
version = "0.1.6";
|
2019-07-25 03:06:59 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
2020-09-28 08:19:39 +02:00
|
|
|
sha256 = "sha256-08WCBct40xC/gcpVNHotCYcZzsrHBGvDZ5g7E4tFAgs=";
|
2019-07-25 03:06:59 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-09-28 08:19:39 +02:00
|
|
|
buildInputs = [ buildsystem ];
|
2019-07-25 03:06:59 +02:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-09-28 08:19:39 +02:00
|
|
|
homepage = "https://www.netsurf-browser.org/";
|
2019-07-25 03:06:59 +02:00
|
|
|
description = "NetSurf Public Suffix List - Handling library";
|
|
|
|
license = licenses.mit;
|
2020-09-28 08:19:39 +02:00
|
|
|
maintainers = [ maintainers.samueldr maintainers.AndersonTorres ];
|
2019-07-25 03:06:59 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|