2016-06-22 05:33:08 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, buildsystem
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-28 06:02:31 +00:00
|
|
|
pname = "netsurf-${libname}";
|
2016-06-22 05:33:08 +00:00
|
|
|
libname = "libnsbmp";
|
2020-07-05 08:36:41 +00:00
|
|
|
version = "0.1.6";
|
2016-06-22 05:33:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
2020-09-28 06:02:31 +00:00
|
|
|
sha256 = "sha256-ecSTZfhg7UUb/EEJ7d7I3j6bfOWjvgaVlr0qoZJ5Mk8=";
|
2016-06-22 05:33:08 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-09-28 06:02:31 +00:00
|
|
|
buildInputs = [ buildsystem ];
|
2016-06-22 05:33:08 +00:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-09-28 06:02:31 +00:00
|
|
|
homepage = "https://www.netsurf-browser.org/";
|
2016-06-22 05:33:08 +00:00
|
|
|
description = "BMP Decoder for netsurf browser";
|
2020-09-28 06:02:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vrthra maintainers.AndersonTorres ];
|
2016-06-22 05:33:08 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|