2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2016-06-22 05:26:14 +00:00
|
|
|
, buildsystem
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-28 06:30:14 +00:00
|
|
|
pname = "netsurf-${libname}";
|
2016-06-22 05:26:14 +00:00
|
|
|
libname = "libwapcaplet";
|
2020-09-28 06:30:14 +00:00
|
|
|
version = "0.4.3";
|
2016-06-22 05:26:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
2020-09-28 06:30:14 +00:00
|
|
|
sha256 = "sha256-myqh3W1mRfjpkrNpf9vYfwwOHaVyH6VO0ptITRMWDFw=";
|
2016-06-22 05:26:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ buildsystem ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
];
|
|
|
|
|
2019-01-11 06:05:22 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=cast-function-type";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-28 06:30:14 +00:00
|
|
|
homepage = "https://www.netsurf-browser.org/projects/${libname}/";
|
2016-06-22 05:26:14 +00:00
|
|
|
description = "String internment library for netsurf browser";
|
2020-09-28 06:30:14 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vrthra maintainers.AndersonTorres ];
|
2016-06-22 05:26:14 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|