Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.3 KiB
Nix

{
stdenv,
autoreconfHook,
fetchFromGitHub,
gtk-sharp-3_0,
lib,
libxslt,
mono,
pkg-config,
webkitgtk_4_0,
}:
stdenv.mkDerivation rec {
pname = "webkit2-sharp";
version = "a59fd76dd730432c76b12ee6347ea66567107ab9";
src = fetchFromGitHub {
owner = "hbons";
repo = "webkit2-sharp";
rev = version;
sha256 = "sha256:0a7vx81zvzn2wq4q2mqrxvlps1mqk28lm1gpfndqryxm4iiw28vc";
};
nativeBuildInputs = [
autoreconfHook
libxslt
mono
pkg-config
];
buildInputs = [
gtk-sharp-3_0
webkitgtk_4_0
];
postPatch = ''
# Workaround build failure with WebKitGTK 2.40.0
# https://github.com/hbons/webkit2-sharp/issues/6
substituteInPlace sources/webkit2-sharp-api.raw --replace \
'<field cname="parentInstance" access="public" writeable="false" readable="true" name="ParentInstance" type="GtkContainer*"/>' \
'<field cname="parent" access="public" writeable="false" readable="true" name="Parent" type="GtkContainer*"/>'
'';
ac_cv_path_MONODOCER = "no";
installFlags = [ "GAPIXMLDIR=/tmp/gapixml" ];
passthru = {
webkitgtk = webkitgtk_4_0;
};
meta = {
description = "C# bindings for WebKit 2 with GTK+ 3";
homepage = "https://github.com/hbons/webkit2-sharp";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kevincox ];
};
}