nixpkgs/pkgs/applications/networking/browsers/netsurf/libnsbmp.nix
2024-02-15 10:56:28 +01:00

33 lines
720 B
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, buildsystem
}:
stdenv.mkDerivation (finalAttrs: {
pname = "netsurf-libnsbmp";
version = "0.1.7";
src = fetchurl {
url = "http://download.netsurf-browser.org/libs/releases/libnsbmp-${finalAttrs.version}-src.tar.gz";
hash = "sha256-VAenaCoSK6qqWhW1BSkOLTffVME8Xt70sJ0SyGLYIpM=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ buildsystem ];
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
];
meta = {
homepage = "https://www.netsurf-browser.org/";
description = "BMP Decoder for netsurf browser";
license = lib.licenses.mit;
inherit (buildsystem.meta) maintainers platforms;
};
})