mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
37 lines
754 B
Nix
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;
|
|
};
|
|
})
|