nixpkgs/pkgs/applications/networking/browsers/netsurf/libnsgif.nix
2023-08-01 10:04:14 +00:00

37 lines
834 B
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, buildPackages
, buildsystem
}:
stdenv.mkDerivation (finalAttrs: {
pname = "netsurf-libnsgif";
version = "0.2.1";
src = fetchurl {
url = "http://download.netsurf-browser.org/libs/releases/libnsgif-${finalAttrs.version}-src.tar.gz";
hash = "sha256-nq6lNM1wtTxar0UxeulXcBaFprSojb407Sb0+q6Hmks=";
};
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ buildsystem ];
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
"BUILD_CC=$(CC_FOR_BUILD)"
];
meta = {
homepage = "https://www.netsurf-browser.org/projects/libnsgif/";
description = "GIF Decoder for netsurf browser";
license = lib.licenses.mit;
inherit (buildsystem.meta) maintainers platforms;
};
})