nixpkgs/pkgs/applications/networking/browsers/netsurf/libnsutils.nix

31 lines
817 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config
2016-06-22 06:36:19 +01:00
, buildsystem
}:
stdenv.mkDerivation rec {
2020-09-28 07:24:38 +01:00
pname = "netsurf-${libname}";
2016-06-22 06:36:19 +01:00
libname = "libnsutils";
2020-09-28 07:24:38 +01:00
version = "0.1.0";
2016-06-22 06:36:19 +01:00
src = fetchurl {
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
2020-09-28 07:24:38 +01:00
sha256 = "sha256-eQxlFjRKvoL2KJ1lY5LpzOvkdbIMx+Hi2EMBE4X3rvA=";
2016-06-22 06:36:19 +01:00
};
nativeBuildInputs = [ pkg-config ];
2020-09-28 07:24:38 +01:00
buildInputs = [ buildsystem ];
2016-06-22 06:36:19 +01:00
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
];
meta = with lib; {
2020-09-28 07:24:38 +01:00
homepage = "https://www.netsurf-browser.org/projects/${libname}/";
2016-06-22 06:36:19 +01:00
description = "Generalised utility library for netsurf browser";
2020-09-28 07:24:38 +01:00
license = licenses.mit;
maintainers = [ maintainers.vrthra maintainers.AndersonTorres ];
2016-06-22 06:36:19 +01:00
platforms = platforms.linux;
};
}