Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 autoreconfHook, 4 fetchFromGitHub, 5 gtk-sharp-3_0, 6 lib, 7 libxslt, 8 mono, 9 pkg-config, 10 webkitgtk, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "webkit2-sharp"; 15 version = "a59fd76dd730432c76b12ee6347ea66567107ab9"; 16 17 src = fetchFromGitHub { 18 owner = "hbons"; 19 repo = "webkit2-sharp"; 20 rev = version; 21 sha256 = "sha256:0a7vx81zvzn2wq4q2mqrxvlps1mqk28lm1gpfndqryxm4iiw28vc"; 22 }; 23 24 nativeBuildInputs = [ 25 autoreconfHook 26 libxslt 27 mono 28 pkg-config 29 ]; 30 31 buildInputs = [ 32 gtk-sharp-3_0 33 webkitgtk 34 ]; 35 36 postPatch = '' 37 # Workaround build failure with WebKitGTK 2.40.0 38 # https://github.com/hbons/webkit2-sharp/issues/6 39 substituteInPlace sources/webkit2-sharp-api.raw --replace \ 40 '<field cname="parentInstance" access="public" writeable="false" readable="true" name="ParentInstance" type="GtkContainer*"/>' \ 41 '<field cname="parent" access="public" writeable="false" readable="true" name="Parent" type="GtkContainer*"/>' 42 ''; 43 44 ac_cv_path_MONODOCER = "no"; 45 installFlagsArray = ["GAPIXMLDIR=/tmp/gapixml"]; 46 47 passthru = { 48 inherit webkitgtk; 49 }; 50 51 meta = { 52 description = "C# bindings for WebKit 2 with GTK+ 3"; 53 homepage = "https://github.com/hbons/webkit2-sharp"; 54 license = lib.licenses.mit; 55 maintainers = with lib.maintainers; [ kevincox ]; 56 }; 57}