2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2020-09-28 06:48:46 +00:00
|
|
|
, uilib, SDL
|
|
|
|
, buildsystem
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "netsurf-${libname}";
|
|
|
|
libname = "libnsfb";
|
|
|
|
version = "0.2.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
|
|
|
sha256 = "sha256-vkRso+tU35A/LamDEdEH11dM0R9awHE+YZFW1NGeo5o=";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-09-28 06:48:46 +00:00
|
|
|
buildInputs = [ SDL buildsystem ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
"TARGET=${uilib}"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-28 06:48:46 +00:00
|
|
|
homepage = "https://www.netsurf-browser.org/projects/${libname}/";
|
|
|
|
description = "Netsurf framebuffer abstraction library";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vrthra maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|