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

37 lines
754 B
Nix

{ lib
, stdenv
, fetchurl
, bison
, flex
, buildsystem
}:
stdenv.mkDerivation (finalAttrs: {
pname = "netsurf-nsgenbind";
version = "0.8";
src = fetchurl {
url = "http://download.netsurf-browser.org/libs/releases/nsgenbind-${finalAttrs.version}-src.tar.gz";
hash = "sha256-TY1TrQAK2nEncjZeanPrj8XOl1hK+chlrFsmohh/HLM=";
};
nativeBuildInputs = [
bison
flex
];
buildInputs = [ buildsystem ];
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
];
meta = {
homepage = "https://www.netsurf-browser.org/";
description = "Generator for JavaScript bindings for netsurf browser";
license = lib.licenses.mit;
inherit (buildsystem.meta) maintainers platforms;
};
})