2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2016-06-22 06:34:15 +01:00
|
|
|
, buildsystem
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-28 07:05:18 +01:00
|
|
|
pname = "netsurf-${libname}";
|
2016-06-22 06:34:15 +01:00
|
|
|
libname = "libnsgif";
|
2019-07-25 01:10:06 +01:00
|
|
|
version = "0.2.1";
|
2016-06-22 06:34:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
2020-09-28 07:05:18 +01:00
|
|
|
sha256 = "sha256-nq6lNM1wtTxar0UxeulXcBaFprSojb407Sb0+q6Hmks=";
|
2016-06-22 06:34:15 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-09-28 07:05:18 +01:00
|
|
|
buildInputs = [ buildsystem ];
|
2016-06-22 06:34:15 +01:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-28 07:05:18 +01:00
|
|
|
homepage = "https://www.netsurf-browser.org/projects/${libname}/";
|
2016-06-22 06:34:15 +01:00
|
|
|
description = "GIF Decoder for netsurf browser";
|
2020-09-28 07:05:18 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vrthra maintainers.AndersonTorres ];
|
2019-10-31 21:54:09 +00:00
|
|
|
platforms = platforms.unix;
|
2016-06-22 06:34:15 +01:00
|
|
|
};
|
|
|
|
}
|