Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
2025-04-08 02:57:25 -04:00

58 lines
1.3 KiB
Nix

{
stdenv,
autoreconfHook,
fetchFromGitHub,
gtk-sharp-3_0,
lib,
libxslt,
mono,
pkg-config,
webkitgtk,
}:
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
];
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 = {
inherit webkitgtk;
};
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 ];
};
}