nixpkgs/pkgs/applications/networking/browsers/netsurf/nsgenbind.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

38 lines
785 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";
mainProgram = "nsgenbind";
license = lib.licenses.mit;
inherit (buildsystem.meta) maintainers platforms;
};
})